Re: (GObject) What are "properties"?

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

 



Hi,

dhaude@xxxxxxxxxxxxxxxxxxxxxx writes:

> what are the "properties" of GObjects, how are they used, and how
> are they different from the things that can be stored/retrieved
> via g_object_set/get_data() ? I've once tried, just for giggles,
> 
> g_object_set(G_OBJECT(some_gtk_widget), "foo", "bar", NULL);
> 
> and got a segfault.

Does your object "some_gtk_widget" have a property named "foo" that
takes a string value? If not, it is not surprising that the call
fails. It's a bit surprising that it crashes; I'd have expected a
warning.

> Which brings me to the point, is anybody working on the
> documentation of GObject at all? Of course I know this is all open
> source stuff, written and maintained by volunteers, so I'm far from
> complaining about lack of documentation. Just curious.

Mathieu is doing a nice job on GObject documentaion. See
http://www.le-hacker.org/papers/gobject/index.html


Sven
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux