Thread: DR800 Osmo: Personal organizer
View Single Post
Old 03-27-2010, 05:50 PM   #12
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Hi Iņigo,

The problem with the keyboard is a DR specific thing. It appears/disappears 'automagically' when needed, however when the application closes and the keyboard is still shown, it will not disappear.
The easiest trick is to change the quit-callback functions to something like this:

Code:
void
calendar_quit_app_cb (GtkWidget *widget, gpointer user_data)
{
    //set focus to button to remove keyboard
    gtk_widget_grab_focus(widget);
    
    GUI *appGUI = (GUI *)user_data;
    gui_quit_osmo (appGUI);
}
(I also changed the signature of the function, which is more appropriate for this kind of callback.)
Mackx is offline   Reply With Quote