summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-11-14 07:29:08 +0200
committerJasmine Hassan <[email protected]>2012-11-14 09:42:33 +0200
commite96bb83cdc1ed0753d2547463a4e6ec61f41de12 (patch)
tree339eaa0b5315a72c8aa5ea8b29129d9583ae6fac
parent638df47ee07a8f5b3ad4cea9639ac05713ab328f (diff)
downloadcaja-e96bb83cdc1ed0753d2547463a4e6ec61f41de12.tar.bz2
caja-e96bb83cdc1ed0753d2547463a4e6ec61f41de12.tar.xz
[sidebar-title] use gtk_label_set_attributes, obsolete eel_gtk_label_set_scale
-rw-r--r--src/caja-sidebar-title.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/caja-sidebar-title.c b/src/caja-sidebar-title.c
index 466d9873..beb30359 100644
--- a/src/caja-sidebar-title.c
+++ b/src/caja-sidebar-title.c
@@ -762,9 +762,16 @@ static GtkWidget *
sidebar_title_create_more_info_label (void)
{
GtkWidget *more_info_label;
+ PangoAttrList *attrs;
+
+ attrs = pango_attr_list_new ();
+ pango_attr_list_insert (attrs, pango_attr_scale_new (PANGO_SCALE_SMALL));
more_info_label = gtk_label_new ("");
- eel_gtk_label_set_scale (GTK_LABEL (more_info_label), PANGO_SCALE_SMALL);
+
+ gtk_label_set_attributes (GTK_LABEL (more_info_label), attrs);
+ pango_attr_list_unref (attrs);
+
gtk_label_set_justify (GTK_LABEL (more_info_label), GTK_JUSTIFY_CENTER);
gtk_label_set_selectable (GTK_LABEL (more_info_label), TRUE);
gtk_label_set_ellipsize (GTK_LABEL (more_info_label), PANGO_ELLIPSIZE_END);