[gnome-control-center] background: Force bigger size for preview rendering



commit 06fd58b90b94e7d60b32b843160f95b8cd5f96fb
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 15 12:55:14 2010 +0000

    background: Force bigger size for preview rendering
    
    The current code would use the "default" cell renderer size of
    16 before scaling the emblem. Make the default size bigger so that
    the emblems are applied on that bigger size, not on the smaller size.
    
    Fixes tiny emblem for slideshows.

 panels/background/background.ui |    4 +++-
 panels/background/bg-source.h   |    4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/panels/background/background.ui b/panels/background/background.ui
index fdb020f..bf85374 100644
--- a/panels/background/background.ui
+++ b/panels/background/background.ui
@@ -67,7 +67,9 @@
                 <property name="column_spacing">0</property>
                 <property name="margin">0</property>
                 <child>
-                  <object class="GtkCellRendererPixbuf" id="pixbuf-renderer"/>
+                  <object class="GtkCellRendererPixbuf" id="pixbuf-renderer">
+                    <property name="stock_size">6</property>
+                  </object>
                   <attributes>
                     <attribute name="gicon">0</attribute>
                   </attributes>
diff --git a/panels/background/bg-source.h b/panels/background/bg-source.h
index d422544..b73265f 100644
--- a/panels/background/bg-source.h
+++ b/panels/background/bg-source.h
@@ -26,8 +26,8 @@
 
 G_BEGIN_DECLS
 
-#define THUMBNAIL_WIDTH 47
-#define THUMBNAIL_HEIGHT 47
+#define THUMBNAIL_WIDTH 48
+#define THUMBNAIL_HEIGHT 48
 
 #define BG_TYPE_SOURCE bg_source_get_type()
 



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