GNOME Bugzilla – Bug 614782
Glade do not save <property name="name">
Last modified: 2011-10-12 08:30:07 UTC
Glade do not save <property name="name"> on gtkbuilder and the function gtk_widget_get_name do not work.
I also encouter the same problem. Below is the related code: window = GTK_WIDGET(gtk_builder_get_object(builder, "window")); quit = GTK_TOOL_ITEM(gtk_builder_get_object(builder, "quit")); undo = (gtk_builder_get_object(builder, "undo")); redo = GTK_TOOL_ITEM(gtk_builder_get_object(builder, "redo")); //undo = (gtk_builder_get_object(builder, "undo")); //redo = (gtk_builder_get_object(builder, "redo")); //printf below is used for debugging printf("undo: %s\n", gtk_widget_get_name(undo)); printf("quit: %s\n", gtk_widget_get_name(quit)); printf("window: %s\n", gtk_widget_get_name(window)); The printf got: undo: GtkToolButton quit: GtkToolButton window: GtkWindow In fact, it should got the name of the object,but got the properties. unanao@debian:~/Experiment/gui/menu-toolbars$ glade --version glade3 3.6.7 unanao@debian:~/Experiment/gui/menu-toolbars$ uname -a Linux debian 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux
*** This bug has been marked as a duplicate of bug 591076 ***