From f808abe87cef647810dcf2415642735e27b75eb0 Mon Sep 17 00:00:00 2001 From: Juan Pablo Ugarte Date: Tue, 26 Jun 2007 20:34:19 +0000 Subject: print a message for missing displayable values in * gladeui/glade-property-class.c: print a message for missing displayable values in glade_property_class_update_from_node() and gpc_get_displayable_values_from_node() * plugins/gtk+/glade-gtk.c: removed inline displayable values in glade_gtk_image_type_get_type() and glade_gtk_button_type_get_type() * plugins/gtk+/gtk+.xml.in: added missing displayable values in GtkToolButton::glade-type, GtkButton::glade-type, GtkImage::glade-type and GtkArrow::arrow-type svn path=/trunk/; revision=1398 --- plugins/gtk+/glade-gtk.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'plugins/gtk+/glade-gtk.c') diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c index a68a7f8d..7a48e8c5 100644 --- a/plugins/gtk+/glade-gtk.c +++ b/plugins/gtk+/glade-gtk.c @@ -178,14 +178,11 @@ glade_gtk_image_type_get_type (void) static GType etype = 0; if (etype == 0) { static GEnumValue values[] = { - { GLADEGTK_IMAGE_FILENAME, "a", "glade-gtk-image-filename" }, - { GLADEGTK_IMAGE_STOCK, "b", "glade-gtk-image-stock" }, - { GLADEGTK_IMAGE_ICONTHEME, "c", "glade-gtk-image-icontheme" }, + { GLADEGTK_IMAGE_FILENAME, "GLADEGTK_IMAGE_FILENAME", "glade-gtk-image-filename" }, + { GLADEGTK_IMAGE_STOCK, "GLADEGTK_IMAGE_STOCK", "glade-gtk-image-stock" }, + { GLADEGTK_IMAGE_ICONTHEME, "GLADEGTK_IMAGE_ICONTHEME", "glade-gtk-image-icontheme" }, { 0, NULL, NULL } }; - values[GLADEGTK_IMAGE_FILENAME].value_name = _("Filename"); - values[GLADEGTK_IMAGE_STOCK].value_name = _("Stock"); - values[GLADEGTK_IMAGE_ICONTHEME].value_name = _("Icon Theme"); etype = g_enum_register_static ("GladeGtkImageType", values); } @@ -198,14 +195,11 @@ glade_gtk_button_type_get_type (void) static GType etype = 0; if (etype == 0) { static GEnumValue values[] = { - { GLADEGTK_BUTTON_LABEL, "a", "glade-gtk-button-label" }, - { GLADEGTK_BUTTON_STOCK, "b", "glade-gtk-button-stock" }, - { GLADEGTK_BUTTON_CONTAINER, "c", "glade-gtk-button-container" }, + { GLADEGTK_BUTTON_LABEL, "GLADEGTK_BUTTON_LABEL", "glade-gtk-button-label" }, + { GLADEGTK_BUTTON_STOCK, "GLADEGTK_BUTTON_STOCK", "glade-gtk-button-stock" }, + { GLADEGTK_BUTTON_CONTAINER, "GLADEGTK_BUTTON_CONTAINER", "glade-gtk-button-container" }, { 0, NULL, NULL } }; - values[GLADEGTK_BUTTON_LABEL].value_name = _("Label"); - values[GLADEGTK_BUTTON_STOCK].value_name = _("Stock"); - values[GLADEGTK_BUTTON_CONTAINER].value_name = _("Container"); etype = g_enum_register_static ("GladeGtkButtonType", values); } -- cgit v1.2.1