[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to get stuff out of a GValue?
- From: Dan H <dunno stoptrick com>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to get stuff out of a GValue?
- Date: Mon, 19 Nov 2007 12:18:08 +0100
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.
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;
gtk_container_child_get(GTK_CONTAINER(table), child,
"left-attach", &left_attach, NULL);
g_printerr("%s\n", g_strdup_value_contents(&left_attach),
---------------------
And I'm getting this error:
GLib-GObject-CRITICAL **: g_strdup_value_contents: assertion
`G_IS_VALUE (value)' failed
Why?
--D.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]