GNOME Bugzilla – Bug 640165
Confusing documentation in GtkWidget draw signal
Last modified: 2013-05-31 14:51:04 UTC
Documentation shows GdkRectangle *cr as second parameter, but it should be cairo_cr (or cr parameter description is wrong). http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#GtkWidget-draw
gtk-doc issue, and has been fixed already. The next release will have better docs. Still not 100% correct, unfortunately :-( gboolean user_function (GtkWidget *widget, CairoContext *cr, gpointer user_data) : Run Last CairoContext should really be cairo_t here.
Hmm, the CairoContext is what I get from g_signal_query (signal_id, &query_info); I guess CairoContext is the boxed type for cairo_t, right?
Okay, thats to help on irc, we tracked this to http://cgit.freedesktop.org/cairo/tree/util/cairo-gobject/cairo-gobject-structs.c#n57 I don't think there is much we can do right now. Ideally a boxed could tell whats in there. If anyone has a good idea, please reopen.