Re: focus line pattern around gtk event box
On Tue, Dec 20, 2011 at 10:43:43PM +1100, Andrew Cowie wrote: > On Tue, 2011-12-20 at 09:25 +0100, David Nečas wrote: > > > Using gtk_paint_focus() in the "draw" handler... > > Deprecated now, apparently; refers to > http://developer.gnome.org/gtk3/3.3/GtkStyleContext.html#gtk-render-focus > instead. No, I just mixed up Gtk+ 2 and 3 functions (sorry for that). gtk_paint_focus() is the correct method to draw focus in Gtk+ 2, but you do this in "expose-event" handler. Use gtk_render_focus() in "draw" handler if you use Gtk+ 3. Yeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: focus line pattern around gtk event box
On Tue, 2011-12-20 at 09:25 +0100, David Nečas wrote: > Using gtk_paint_focus() in the "draw" handler... Deprecated now, apparently; refers to http://developer.gnome.org/gtk3/3.3/GtkStyleContext.html#gtk-render-focus instead. AfC Sydney ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: focus line pattern around gtk event box
On Tue, Dec 20, 2011 at 11:24:44AM +0530, Guruprasad Bhat wrote: > When I set the focus line pattern in rc file, dotted border comes around > button widgtes, entry widgets when focus comes on that. But for event box, > layout, even though i set Can focus flag TRUE focus in indication is not > appearing. How I can get the visual indication of focus in for gtk event > box, gtk layout. Early suggestion appreciated. Using gtk_paint_focus() in the "draw" handler to draw it if the widget has focus. Yeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
focus line pattern around gtk event box
Hi ppl, When I set the focus line pattern in rc file, dotted border comes around button widgtes, entry widgets when focus comes on that. But for event box, layout, even though i set Can focus flag TRUE focus in indication is not appearing. How I can get the visual indication of focus in for gtk event box, gtk layout. Early suggestion appreciated. Regards, ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list