Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » Is a GtkWidget a decendant of a Gobject? [RSS Feed]

#1 Nov. 18, 2005 20:38:09

L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Is a GtkWidget a decendant of a Gobject?


I am making a simple c++ wrapper for GTK for my own use.When this line of codegobject=(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)' failedeverything seems to work fine but they worry me. What is up?_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#2 Nov. 19, 2005 06:27:09

Hans O.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Is a GtkWidget a decendant of a Gobject?


Did you do gtkmain() etc? See tutorial?

LWATCDR schreef:I am making a simple c++ wrapper for GTK for my own use.
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)' failedeverything seems to work fine but they worry me. What is up?

------------------------------------------------------------------------

_______________________________________________
gtk-list mailing list
gtk-l***@*nome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#3 Nov. 19, 2005 07:54:28

David N.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Is a GtkWidget a decendant of a Gobject?


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.
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

  • Root
  • » GTK+
  • » Is a GtkWidget a decendant of a Gobject? [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support