[epiphany] Make download label smaller



commit a2cb59a934cf33be6731ac6e274d847dc776c92d
Author: William Jon McCann <william jon mccann gmail com>
Date:   Sun Dec 22 10:27:01 2013 -0500

    Make download label smaller
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720941

 lib/widgets/ephy-download-widget.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/ephy-download-widget.c b/lib/widgets/ephy-download-widget.c
index a314871..cecf5a4 100644
--- a/lib/widgets/ephy-download-widget.c
+++ b/lib/widgets/ephy-download-widget.c
@@ -529,6 +529,16 @@ ephy_download_widget_class_init (EphyDownloadWidgetClass *klass)
 }
 
 static void
+smallify_label (GtkLabel *label)
+{
+        PangoAttrList *attrs;
+        attrs = pango_attr_list_new ();
+        pango_attr_list_insert (attrs, pango_attr_scale_new (PANGO_SCALE_SMALL));
+        gtk_label_set_attributes (label, attrs);
+        pango_attr_list_unref (attrs);
+}
+
+static void
 create_widget (EphyDownloadWidget *widget)
 {
 
@@ -548,10 +558,12 @@ create_widget (EphyDownloadWidget *widget)
   icon = gtk_image_new ();
 
   text = gtk_label_new (NULL);
+  smallify_label (GTK_LABEL (text));
   gtk_misc_set_alignment (GTK_MISC (text), 0, 0.5);
   gtk_label_set_ellipsize (GTK_LABEL (text), PANGO_ELLIPSIZE_END);
 
   remain = gtk_label_new (_("Starting…"));
+  smallify_label (GTK_LABEL (remain));
   gtk_misc_set_alignment (GTK_MISC (remain), 0, 0.5);
   gtk_label_set_ellipsize (GTK_LABEL (remain), PANGO_ELLIPSIZE_END);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]