Hi all,
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. Little wonde
Hi,
[EMAIL PROTECTED] 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);
> 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.
Ah. No, of course it doesn't have that property, which explains
why my experiment
> I guess I haven't quite wrapped my head around properties,
> but am I right in assuming that their main advantages (as
> opposed to, say, ordinary class members) are:
>
> 1) they are installable at runtime
>
> 2) they can emit signals when changed
These are true, though I don't think 1) is t
On Wed, 2003-11-19 at 14:04, [EMAIL PROTECTED] wrote:
> > 2) they can emit signals when changed
>
> These are true, though I don't think 1) is that useful.
Two is kinda annoying too, because they always seem to emit signals, and
occasionally that messes up when you start playing around with mul
Hi,
[EMAIL PROTECTED] writes:
> 4) don't mess with ABI. You can add a property without worrying
> about changing the size of the struct.
Sorry, but this is not true. The property doesn't provide a place to
store the value, it only provides a way to get and set the value in a
general fashion.
Fo
> [EMAIL PROTECTED] writes:
>
> > 4) don't mess with ABI. You can add a property without
> worrying about
> > changing the size of the struct.
>
> Sorry, but this is not true. The property doesn't provide a
> place to store the value, it only provides a way to get and
> set the value in a gen
Install property is a way for g_object_set_xxx series functions. An implementation of
OO with C.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 2003年11月19日 21:42
To: [EMAIL PROTECTED]
Subject: Re: (GObject) What are "prope