How do to use a gtk_type as a property type

From: Dov Grobgeld <>
Date: Tue, 28 Aug 2007 20:55:41 +0300

After having used gob2 extensively I finally and for the first time got
stuck on something that I could not find in the documentation. How do I
define a property that is defined by Gtk and not by Glib? It seems like the
name mangling of the property name always sticks on G_TYPE_ to the property
name. Shouldn't this be modifyable e.g. by doing GTK:ADJUSTMENT to make the

In particular, I'm trying to convert the following code from my
gtk_image_viewer widget to gob:

  g_object_class_install_property (gobject_class,
                                   g_param_spec_object ("hadjustment",
                            ("Horizontal adjustment"),
                            ("The GtkAdjustment that determines the values
of the horizontal position for this image_viewer."),

Thanks a lot for gob!

Received on Tue Aug 28 2007 - 10:55:47 CDT

This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:05:02 CDT