user interface - C - Change focus to new GtkWidget -


i'm working on gtk ui irc client. i'd add following interaction it:

  1. on user input: /join #channel
  2. create new tab < -- working
  3. 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

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -