user interface - C - Change focus to new GtkWidget -
i'm working on gtk ui irc client. i'd add following interaction it:
- on user input: /join #channel
- create new tab < -- working
- set focus on < -- not working
i can't seem set focus (not input focus, view focus sttign widget active view) on created gtkwidget* on notebook. tried using grab_focus() function focus still on created tab.
what missing?
the widget has focusable (gtk_widget_can_focus
), otherwise gtk_widget_grab_focus
not anything.
also there no such thing "view-focus". have input focus , window focus.
- window focus - makes application receive mouse/keyboard events.
- widget input focus - makes widget receive keyboard events if window focussed
note input
here means input event (a gtkbutton
handles enter whereas gtkscale
handles 0123...9.+- , may handle enter well).
Comments
Post a Comment