summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-12-15 12:55:14 +0000
committerBastien Nocera <hadess@hadess.net>2010-12-15 12:57:13 +0000
commit06fd58b90b94e7d60b32b843160f95b8cd5f96fb (patch)
tree97a3e6d7e7baf5c01b39531fe21b2f5aeba9a82f
parentdb3129ef637ddcc6ff09a50b3b7986f8df525d4f (diff)
downloadgnome-control-center-06fd58b90b94e7d60b32b843160f95b8cd5f96fb.tar.gz
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.
-rw-r--r--panels/background/background.ui4
-rw-r--r--panels/background/bg-source.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/panels/background/background.ui b/panels/background/background.ui
index fdb020ff0..bf85374f5 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 d42254429..b73265fef 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()