About the draw signal
- From: 丁少衡 <dshbusiness gmail com>
- To: gtk-list <gtk-list gnome org>
- Subject: About the draw signal
- Date: Sat, 1 Oct 2011 09:52:52 +0800
Hi,
I find that in the gtk+-3.0, the "expose-event" is replaced by "draw" signal. The signal hanlder for the "draw"signal looks like: gboolean user_function(GtkWidget *Widget, CairoContext *cr, gpointer user_data); Does the CairoContext mean cairo_t? And, the second parameter(CairoContext *cr) is not passed by the gtk when I use the g_signal_connect(window, "draw", GCALLBACK(myfunc), NULL); Say, if I use that parameter in myfunc, it would be a compile error. Why?
dingshaoheng
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]