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

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.

The Master in the art of living makes little distinction between his work and his play, his labor and his leisure, his mind and his body, his education and his recreation, his love and his religion. He hardly knows which is which. He simply pursues his vision of excellence in whatever he does, leaving others to decide whether he is working or playing. To him he is always doing both.

  -- Zen Philosophy

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