Re: Drawing an insensitive widget



Hi!

The GtkWidget “expose-event” signal has been replaced by a new “draw”
signal, which takes a cairo_t instead of an expose event. 

https://developer.gnome.org/gtk3/stable/ch24s02.html#id-1.6.3.4.11
-- 


Best regards, Yan Zlobin
E-Mail: yan_zlobin agnioyoga ru
Web: http://yan.zlobin.name/
IM: yan_zlobin agniyoga ru



-------- Исходное сообщение --------
От: ax487 <ax487 gmx de>
Кому: gtk-list gnome org
Тема: Drawing an insensitive widget
Дата: Wed, 30 Apr 2014 16:29:12 +0200

Hello all,

I have the following problem: I have a widget with a custom drawing
routine which is triggered by the widgets "expose-event". I just obtain
a cairo_t* and use it to draw on the widget. However, at some point in
time the widget might be insensitive. Of course the widget should still
be drawn. However, I would like to know how I can appropriately achieve
the "greyed out" effect. Any ideas for a portable, clean solution?

ax487
_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list




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