summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-11-02 22:32:24 +0200
committerJasmine Hassan <[email protected]>2012-11-13 06:25:03 +0200
commit7dd50ac5969408e7f1fd1d452c13537a45731c58 (patch)
tree3a78e0af606c370df13f77b2834537c7b86a49e3 /src
parentef8b06eaa8c26e592e9028b8a93361653abfb8ed (diff)
downloadcaja-7dd50ac5969408e7f1fd1d452c13537a45731c58.tar.bz2
caja-7dd50ac5969408e7f1fd1d452c13537a45731c58.tar.xz
[property-browser] use gtk_label_set_attributes, obsolete eel_gtk_label_set_scale
Not upstream because property-browser removed. But as in upstream, eel_gtk_label_set_scale() is going away in next eel-gtk-extensions.[ch] cleanup.
Diffstat (limited to 'src')
-rw-r--r--src/caja-property-browser.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/caja-property-browser.c b/src/caja-property-browser.c
index c74177d3..92de4738 100644
--- a/src/caja-property-browser.c
+++ b/src/caja-property-browser.c
@@ -228,6 +228,7 @@ caja_property_browser_init (GtkObject *object)
GtkWidget *widget, *temp_box, *temp_hbox, *temp_frame, *vbox;
GtkWidget *temp_button;
GtkWidget *viewport;
+ PangoAttrList *attrs;
char *temp_str;
property_browser = CAJA_PROPERTY_BROWSER (object);
@@ -316,9 +317,12 @@ caja_property_browser_init (GtkObject *object)
gtk_container_add(GTK_CONTAINER(temp_frame), temp_hbox);
/* add the title label */
+ attrs = pango_attr_list_new ();
+ pango_attr_list_insert (attrs, pango_attr_scale_new (PANGO_SCALE_X_LARGE));
+ pango_attr_list_insert (attrs, pango_attr_weight_new (PANGO_WEIGHT_BOLD));
property_browser->details->title_label = gtk_label_new ("");
- eel_gtk_label_set_scale (GTK_LABEL (property_browser->details->title_label), PANGO_SCALE_X_LARGE);
- eel_gtk_label_make_bold (GTK_LABEL (property_browser->details->title_label));
+ gtk_label_set_attributes (GTK_LABEL (property_browser->details->title_label), attrs);
+ pango_attr_list_unref (attrs);
gtk_widget_show(property_browser->details->title_label);
gtk_box_pack_start (GTK_BOX(temp_hbox), property_browser->details->title_label, FALSE, FALSE, 0);