Here's a snippet that works in GTK 2.2.4:

        // prevent this object getting the keyboard focus
        g_object_set(G_OBJECT (m_pButton), 
                                        "can-focus", false,
                                        NULL);

where m_pButton is the widget in question.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Miroslav
Rajcic
Sent: Friday, March 11, 2005 2:26 AM
To: gtk-app-devel-list@gnome.org
Subject: How to make toolbar without GTK_CAN_FOCUS


I am trying to make my toolbar (with tool buttons) not to receive focus
when
Tab is used to move focus along the window widgets.

I've tried to call
GTK_WIDGET_UNSET_FLAGS(widget, GTK_CAN_FOCUS);
to both toolbar widget and every single tool button, but it doesn't seem
to
work.
Toolbar still gets focused when Tab key is used to change focus.

Anyone has a clue?

TIA,
  Miroslav Rajcic


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to