Re: Is a GtkWidget a decendant of a Gobject?
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: LWATCDR <lwatcdr gmail com>
- Cc: gtk-list gnome org
- Subject: Re: Is a GtkWidget a decendant of a Gobject?
- Date: Fri, 18 Nov 2005 23:48:35 +0100
On Fri, Nov 18, 2005 at 03:37:58PM -0500, LWATCDR wrote:
> When this line of code
> gobject=(GObject *)gtk_window_new(GTK_WINDOW_TOPLEVEL);
> executes I get these messages.
>
> testgtk:11206): GLib-GObject-WARNING **: invalid (NULL) pointer instance
>
> (testgtk:11206): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
> `G_TYPE_CHECK_INSTANCE (instance)' failed
>
> everything seems to work fine but they worry me. What is up?
GtkWidget is a subclass of GObject (of course not in C++
sense, but in GObject type system). The line
gobject=(GObject *)gtk_window_new(GTK_WINDOW_TOPLEVEL);
contains nothing that could produce the errors above (unless
something else is seriously messed up). Try to create
a minimal test case that reproduces the errors, you should
find the real source of the problem along the way -- if not,
post it.
Yeti
--
That's enough.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]