Re: Patches to gtkwidget and gtkwindow for property support



Tim Janik <timj gtk org> writes: 
> >     case PROP_STYLE:
> >       g_value_set_boxed (value, (gpointer) gtk_widget_get_style (widget));
> 
> sicne we don't have a literal GBoxed type but take a gconstpointer
> instead, you don't need this cast either.
> 

Also GtkStyle is a GObject now, so should use g_value_set_object() and
g_param_spec_object().

Havoc




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