[gnome-boxes] Fix bold in properties sidebar



commit 49b5e9eb7c843ac172d1cbd327a5e43f80907dc5
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jun 8 16:11:35 2012 +0200

    Fix bold in properties sidebar
    
    It seems the cell renderer doesn't pick up the css font weight.
    Also, with the bold, drop the font size to compensate.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677713

 data/gtk-style.css  |    2 +-
 src/properties.vala |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 8659edc..d64ab27 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -39,7 +39,7 @@ BoxesMiniGraph {
 }
 
 .sidebar .cell {
-    font-size: 14;
+    font-size: 11;
     font-weight: bold;
 }
 
diff --git a/src/properties.vala b/src/properties.vala
index d6f0214..f0987e4 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -177,6 +177,7 @@ private class Boxes.Properties: Boxes.UI {
         tree_view.headers_visible = false;
         var renderer = new CellRendererText ();
         renderer.xpad = 20;
+        renderer.weight = Pango.Weight.BOLD;
         tree_view.insert_column_with_attributes (-1, "", renderer, "text", 0);
         vbox.pack_start (tree_view, true, true, 0);
 



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