[Glade-users] i don't get it



I'm building my gui with the glade interface designer. Then i just use the .glade file it generates, and 
remove all
the crap i don't need.

Possible i'm removing a bit to much, but i don't understand what's going on here. I get a gazillion errors on 
startup,
yet it seems to work fine. However, i now have a new widget added to my table1, with about 10 pages, and it 
just
displays the first 2, with wrong labels to.

I will add the errors i get (sorry if it is to much) and my main.c file i use for program initialization. I 
hope 
someone can tell me what to do. 

(magellan:8087): GLib-GObject-CRITICAL **: file gobject.c: line 1002 (g_object_get): assertion `G_IS_OBJECT 
(object)' 
failed

(magellan:8087): GLib-GObject-CRITICAL **: file gobject.c: line 1002 (g_object_get): assertion `G_IS_OBJECT 
(object)' 
failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GConf-CRITICAL **: file gconf-client.c: line 545 (gconf_client_add_dir): assertion 
`gconf_valid_key 
(dirname, NULL)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 869 (gnome_program_locate_file): assertion 
`program != 
NULL' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 869 (gnome_program_locate_file): assertion 
`program != 
NULL' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkaccelmap.c: line 135 (gtk_accel_map_add_entry): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkaccelmap.c: line 135 (gtk_accel_map_add_entry): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkaccelmap.c: line 135 (gtk_accel_map_add_entry): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkaccelmap.c: line 135 (gtk_accel_map_add_entry): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkaccelmap.c: line 135 (gtk_accel_map_add_entry): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkaccelmap.c: line 135 (gtk_accel_map_add_entry): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkaccelmap.c: line 135 (gtk_accel_map_add_entry): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkaccelmap.c: line 135 (gtk_accel_map_add_entry): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gnome-CRITICAL **: file gnome-program.c: line 738 (gnome_program_get_app_id): assertion 
`program != 
NULL' failed

(magellan:8087): GLib-CRITICAL **: file gstring.c: line 479 (g_string_prepend): assertion `val != NULL' failed

(magellan:8087): Gtk-CRITICAL **: file gtkwidget.c: line 2937 (gtk_widget_set_accel_path): assertion 
`_gtk_accel_path_is_valid (accel_path)' failed

(magellan:8087): Gtk-CRITICAL **: file gtknotebook.c: line 4786 (gtk_notebook_set_tab_label): assertion 
`GTK_IS_WIDGET 
(child)' failed

(magellan:8087): Gtk-CRITICAL **: file gtknotebook.c: line 4786 (gtk_notebook_set_tab_label): assertion 
`GTK_IS_WIDGET 
(child)' failed

(magellan:8087): Gtk-CRITICAL **: file gtknotebook.c: line 4786 (gtk_notebook_set_tab_label): assertion 
`GTK_IS_WIDGET 
(child)' failed

(magellan:8087): Gtk-CRITICAL **: file gtknotebook.c: line 4786 (gtk_notebook_set_tab_label): assertion 
`GTK_IS_WIDGET 
(child)' failed

(magellan:8087): Gtk-CRITICAL **: file gtknotebook.c: line 4786 (gtk_notebook_set_tab_label): assertion 
`GTK_IS_WIDGET 
(child)' failed

(magellan:8087): Gtk-CRITICAL **: file gtknotebook.c: line 4786 (gtk_notebook_set_tab_label): assertion 
`GTK_IS_WIDGET 
(child)' failed


And this, is what i use for the main() code:

#include "include.h"

GtkWidget *magellan;    /* Main gnome application window */
GladeXML *xml;

int main(int argc,char *argv[])
{
        /* initialize gnome */
        gtk_init(&argc,&argv);

        /* initialize glade for gnome */
        glade_init();

        /* Load widgets from XML file in GladeXML objects */
        if(!(xml=glade_xml_new("../magellan.glade",NULL,NULL))) {
        g_warning(".glade not available");
        exit(1);}

        /* Autoconnect signals */
        glade_xml_signal_autoconnect(xml);

        /* Get our widget pointers from the XML object */
        magellan=glade_xml_get_widget(xml,"magellan");


         /* We don't need the GladeXML objects anymore, so
        //destroy it to save some memory */
        //gtk_object_unref(GTK_OBJECT(xml));

        gtk_main();

        return 0;
}





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]