summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2013-09-13 18:05:41 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2013-09-13 18:09:29 -0300
commit06d14dce9ec631b0eaf76097bc6dcbbad09fe060 (patch)
tree8c5bb2c10bea98e9eac06bf5b4a5c114285aa7da
parent0f7ad5a0d3dba23b85d278a0a9295a30f3e7f201 (diff)
downloadglade-06d14dce9ec631b0eaf76097bc6dcbbad09fe060.tar.gz
Fixed bug 643923 "Should not use markup for GtkFrame's label"
Its better not to promote the use of markups since they do not fit well with themming. And its a failure point for translations.
-rw-r--r--plugins/gtk+/glade-gtk-frame.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/gtk+/glade-gtk-frame.c b/plugins/gtk+/glade-gtk-frame.c
index 47bab990..39227aa4 100644
--- a/plugins/gtk+/glade-gtk-frame.c
+++ b/plugins/gtk+/glade-gtk-frame.c
@@ -33,7 +33,6 @@ glade_gtk_frame_post_create (GladeWidgetAdaptor * adaptor,
static GladeWidgetAdaptor *label_adaptor = NULL, *alignment_adaptor = NULL;
GladeWidget *gframe, *glabel, *galignment;
GtkWidget *label;
- gchar *label_text;
if (reason != GLADE_CREATE_USER)
return;
@@ -61,12 +60,7 @@ glade_gtk_frame_post_create (GladeWidgetAdaptor * adaptor,
glade_widget_get_project
(gframe), NULL);
- label_text =
- g_strdup_printf ("<b>%s</b>", glade_widget_get_name (gframe));
- glade_widget_property_set (glabel, "label", label_text);
- glade_widget_property_set (glabel, "use-markup", "TRUE");
- g_free (label_text);
-
+ glade_widget_property_set (glabel, "label", glade_widget_get_name (gframe));
g_object_set_data (glade_widget_get_object (glabel),
"special-child-type", "label_item");
glade_widget_add_child (gframe, glabel, FALSE);