Re: How to get stuff out of a GValue?
- From: Benoît Dejean <benoit placenet org>
- To: Emmanuele Bassi <ebassi gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to get stuff out of a GValue?
- Date: Tue, 20 Nov 2007 01:11:17 +0100
Le lundi 19 novembre 2007 Ã 11:33 +0000, Emmanuele Bassi a Ãcrit :
On Mon, 2007-11-19 at 12:18 +0100, Dan H wrote:
On Mon, 19 Nov 2007 10:56:35 +0000
Emmanuele Bassi <ebassi gmail com> wrote:
Any hints?
just one page further:
http://library.gnome.org/devel/gobject/stable/gobject-Standard-Parameter-and-Value-Types.html
Ah, I'm using the Debian-supplied version 2.12.4, and your page refers to 2.14.3. Thanks. I guess it's
just missing from my docs.
nope: it's been there for ages. :-)
As it is, I'm having much more fundamental problems. I'm trying to do this to a GtkWidget *child inside
GtkTable *table:
---------------------
- GValue left_attach;
+ GValue left_attach = { 0, };
+
+ g_value_init (&left_attach);
+
I always though that this requirement was error prone. You just get to initialize
your GValue twice to make it OK. A lot of beginners hit this error. The
doc says "A zero-filled (uninitialized) GValue structure." which looks
like an oxymoron :)
--
BenoÃt Dejean
GNOME http://www.gnomefr.org/
LibGTop http://directory.fsf.org/libgtop.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]