Re: [Anjuta-list] Basic problems with Anjuta
- From: Steve <zephod cfl rr com>
- To: Sébastien Granjoux <seb sfo free fr>
- Cc: anjuta-list lists sourceforge net
- Subject: Re: [Anjuta-list] Basic problems with Anjuta
- Date: Thu, 13 Nov 2008 13:03:30 -0500
Hi Sebastien,
---- "Sébastien Granjoux" <seb sfo free fr> wrote:
> Hi Steve,
>
> Steve a écrit :
> > On to my next issue. When I run this minimal program, I get this warning:
> > (junk:5530): Gtk-CRITICAL **: gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed.
> > This error impies that in the main.c line:
> > gtk_widget_show (window);
> > the variable 'window' is not a GtkWidget but it is. It also implies (Gtk-CRITICAL) that
> > this is really bad but the program operayes as expected. Is this a Gtk or an Anjuta issue?
>
> The gtk sample program of Anjuta need a glade file which should be in a
> system directory. If it is not the case the window is not created and
> indeed the window variable doesn't contain a window object but NULL.
> That's why you get a critical error. But I get 1 warning and 2 other
> critical errors before. So I'm not sure you are facing the same issue.
>
Well, it's definitely not an Anjuta problem. I just created a very similar basic program using glade3, v3.4.5 and I see the same error. After saving the project, I converted from a glade file to an xml file:
$ gtk-builder-convert glade_test.glade glade_test.xml
Wrote glade_test.xml
Here is the code I wrote (actially I copied from a glade tutorial on the web) to test this:
int
main (int argc, char *argv[])
{
GtkBuilder *builder;
GtkWidget *window;
gtk_init (&argc, &argv);
builder = gtk_builder_new ();
gtk_builder_add_from_file (builder, "glade_test.xml", NULL);
window = GTK_WIDGET (gtk_builder_get_object (builder, "window"));
gtk_builder_connect_signals (builder, NULL);
g_object_unref (G_OBJECT (builder));
gtk_widget_show (window);
gtk_main ();
return 0;
}
When run this gives the same error:
(glade_test:7354): Gtk-CRITICAL **: gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed
So this is probably a glade3 issue. I didn't see anything in bugzilla specifically for this but 459906 looks similar, just for other widgets.
Steve.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]