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

Reply via email to