Re: Can't add new GTK 2.16 methods to GtkStyle



On Sat, Jan 17, 2009 at 10:38 PM, muppet <scott asofyet org> wrote:

On Jan 17, 2009, at 2:44 PM, Torsten Schoenfeld wrote:

Then the GValue will need to be
initialized for which you need to know the type of the property.  I think
this
will have to look something like this (modulo error checking):

 GParamSpec *pspec = gtk_widget_class_find_style_property (
  g_type_class_peek (widget_type), property_name);
 g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));

Oooh, good eye, i completely overlooked that.


Thanks for the advice. The methods get_property() and get() have been
added. I've added get() because I have assumed that that's is what
gtk_style_get_valist should be named.

Best regards,
Emmanuel Rodriguez

Attachment: GtkStyle.patch
Description: Text Data



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