[maemo-developers] [maemo-developers] A set of development questions...
From: Tomi Ollila tomi.ollila at guru.guru-group.fiDate: Tue Jan 24 23:10:15 EET 2006
- Previous message: [maemo-developers] Re: email source code available
- Next message: [maemo-developers] A set of development questions...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi
While working to create revsh-tunnel-gui to ease remote access to
a Nokia 770 I've come up with some issues. I'd like to ask some
questions to get (some of) these issues solved quicker. In the
order of annoyance these are:
1 I've set "Capitalize" on when typing on virtual keyboard. Is
there a way in GtkEntry to to hint the keyboard to not to capitalize
the first word? BTW it is interesting that also the numeric keypad
is capitalized ;/
2 I have code like:
GtkWidget * view = gtk_text_view_new_with_buffer(buffer);
gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(view), TRUE);
gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE);
g_signal_connect(G_OBJECT(view), "key-press-event",
G_CALLBACK(key_pressed), null);
this works fine when using standard keyboard on normal linux PC
(i.e. key_pressed function is called on every keystroke on textwiew)
Now, is it possible somehow to activate virtual keyboard on textview
even it is not editable and start getting input there..?
3 Is there a compiler define that can be used in code to conditionally
compile code when targeting for 770 (and some other code when not for 770).
Currently I use the following kludgy hack:
test -f /etc/init.d/maemo-launcher && XD=-DM4EM0 || XD=
and then use $XD in gcc command line.
4 Creating code that are to be launched from "extras" menu doesn't have
much (easily findable?) documentation. maemopad seems just to run
osso_initialize() and nothing more(?). If I just do that is that good
enough (and dump the return value) (for start, sometime later (say,
never) that could be "fixed" to do more). Currently I cheat this
by doing the following:
if (fork()) { sleep(60); return; }
close(0); close(1); close(2); setsid();
(well, should dup(2) /dev/null to 0, 1, 2.. but...)
BTW: how to check whether one needs to osso_initialize()... or is it
good to do anyway... and does it require more than
`pkg-config --cflags --libs gtk+-2.0` to be given on compiler command line
Thanks for reading. Any hints on any of the above subjects are greatly
appreciated. Meanwhile I have some revcp issues to solve... revsh.c
is lost... it requires a big rewrite to make some things right... but
anyway, IMHO it is useful remote access tool to get into Nokia 770.
Tomi
- Previous message: [maemo-developers] Re: email source code available
- Next message: [maemo-developers] A set of development questions...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
