notebook and focus



hi,

i have a GtkNoteBook with serveral tabs.
in each tab i have :
- entry
- textview
- clist (yes don't hurt me)
- buttons and combos ..

pretty much an xchat like UI.

i want to give the focus to the entry when i change tab. for that i
connect the "switch-page" to a callback that does
gtk_widget_grab_focus(my_entry).

however this does not seems to work. 
what is the trick to make this work ?

thanks



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]