Computer Science Canada Problem with GTK+ Application |
Author: | apython1992 [ Sun Nov 28, 2010 5:43 pm ] | ||||
Post subject: | Problem with GTK+ Application | ||||
Hello, I am writing a GTK+ application as part of a final project at school. To start, I wrote a toy application with simply a window that has one callback function, "on_window_destroy", just to work the kinks out before I add more widgets. However, when I try to run the program, I get the following error message: (test.exe:1236): Gtk-CRITICAL **: gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed I am designing my application with Glade 3.6, which essentially builds an XML file that the C++ code parses, using GtkBuilder. Here is the XML file created by Glade:
And my C++ code:
I write my C++ code with codeblocks, and use the GNU GCC compiler, if that's relevant. Thank you in advance. |
Author: | wtd [ Mon Nov 29, 2010 2:19 am ] |
Post subject: | RE:Problem with GTK+ Application |
Any particular reason you hate yourself enough to use C++ for this? Something like Vala would seem a better choice. |
Author: | apython1992 [ Mon Nov 29, 2010 8:51 pm ] |
Post subject: | Re: Problem with GTK+ Application |
Trust me, I have used GTK with Python before, and I agree, using it with C++ is a bit of a pain by comparison. However, as this is for a school project, I really have no choice but to use C++. |
Author: | apython1992 [ Tue Nov 30, 2010 8:17 pm ] |
Post subject: | Re: Problem with GTK+ Application |
I found the problem, thanks. |