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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]