[glade] Fixed bug 643923 "Should not use markup for GtkFrame's label"
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Fixed bug 643923 "Should not use markup for GtkFrame's label"
- Date: Fri, 13 Sep 2013 21:10:58 +0000 (UTC)
commit 06d14dce9ec631b0eaf76097bc6dcbbad09fe060
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Fri Sep 13 18:05:41 2013 -0300
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.
plugins/gtk+/glade-gtk-frame.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk-frame.c b/plugins/gtk+/glade-gtk-frame.c
index 47bab99..39227aa 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]