Weird pointer error.
- From: Leo Przybylski <leo leosandbox org>
- To: gtk-app-devel-list gnome org
- Subject: Weird pointer error.
- Date: Wed, 27 Oct 2004 14:12:40 -0700
Hello,
I got my GtkNotebook working. I have a new problem now. I have created a
structure to store the GtkNotebook *, but whenever I try to set the
pointer with:
GtkWidget * notebook
notebook = gtk_notebook_new();
widget_s->notebook = notebook;
... I get numerous errors:
(console:24261): GLib-GObject-CRITICAL **: file gobject.c: line 1561
(g_object_ref): assertion `G_IS_OBJECT (object)' failed
(console:24261): Gtk-CRITICAL **: file gtkobject.c: line 459
(gtk_object_sink): assertion `GTK_IS_OBJECT (object)' failed
(console:24261): GLib-GObject-WARNING **: cannot derive `GtkAdjustment'
from non-derivable parent type `GtkObject'
(console:24261): GLib-GObject-CRITICAL **: file gobject.c: line 819
(g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed
(console:24261): GLib-GObject-CRITICAL **: file gobject.c: line 1561
(g_object_ref): assertion `G_IS_OBJECT (object)' failed
(console:24261): Gtk-CRITICAL **: file gtkobject.c: line 459
(gtk_object_sink): assertion `GTK_IS_OBJECT (object)' failed
(console:24261): GLib-GObject-WARNING **: cannot derive `GtkAdjustment'
from non-derivable parent type `GtkObject'
(console:24261): GLib-GObject-CRITICAL **: file gobject.c: line 819
(g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed
I found that i get the same even when I use:
widget_s->notebook = 0;
Apparently, somewhere, something is looking for widget_s->notebook and
maybe there are initialization problems. I'm clueless on this.
This application works better if I don't reinitialize widget_s->notebook
or when I remove notebook from the widget_s struct.
Any ideas?
Leo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]