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




On Jan 18, 2009, at 4:42 AM, Emmanuel Rodriguez wrote:

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.

Careful --- that will most definitely be a naming conflict with Glib::Object::get().

$style->get (...); <- should that be Glib::Object::get() or Gtk2::Style::get() ?



--
One, two, free, four, five, six, sebben, eight, nine, ten, elebben, twull, fourteen, sickteen, sebbenteen, eightteen, elebbenteen, fiffeen, elebbenteen!
  -- Zella, aged three, counting to twenty.





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