On 26-Jul-2006 Tristan Van Berkom wrote: > [EMAIL PROTECTED] wrote: >> Hi all, > [...] > > This should do it: > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-grab-focu > s
but. but. but... I already HAVE the focus call (it's in the callback in the code i attached), and THAT's what's really puzzling me. > I may be wrong... maybe you have to also ensure that the toplevel window > also has focus... This might be the key. so any hints/clues how to set focus to the top level window ? According to the link you just sent (something which I was programming against earlier, by the way :): gtk_widget_grab_default () Causes widget to have the keyboard focus for the GtkWindow it's inside. widget must be a focusable widget, such as a GtkEntry; something like GtkFrame won't work. (More precisely, it must have the GTK_CAN_FOCUS flag set.) so it seems to me that a top-level window won't be able to be used, because it won't be able to grab KEYBOARD (I'm thinking input here, is this wrong?) focus. thoughts ? hints ? thanks for the pointer, by the way, -Greg > Cheers, > -Tristan +---------------------------------------------------------------------+ Please also check the log file at "/dev/null" for additional information. (from /var/log/Xorg.setup.log) | Greg Hosler [EMAIL PROTECTED] | +---------------------------------------------------------------------+ _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list