summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-layers.c
diff options
context:
space:
mode:
authorJosephMcc <mccullarjoseph@gmail.com>2017-04-03 17:51:57 -0700
committerraveit65 <mate@raveit.de>2017-08-12 19:48:34 +0200
commit6217ba3214fb0284eb569ed22b5700ad2c6b5817 (patch)
treea3235c6332fdc0f9a90233030389ffd5a34ec40b /shell/ev-sidebar-layers.c
parent94c2d848c4c71e600d92cc7f0a2b9e75ddf0feab (diff)
downloadatril-6217ba3214fb0284eb569ed22b5700ad2c6b5817.tar.bz2
atril-6217ba3214fb0284eb569ed22b5700ad2c6b5817.tar.xz
shell: Ditch gimpcellrenderertoggle
This is full of deprecated code and wasn't displaying properly. Replace it with a gtk_cell_renderer_toggle_new() which uses a standard themed checkbox widget and should display properly in HiDPI.
Diffstat (limited to 'shell/ev-sidebar-layers.c')
-rw-r--r--shell/ev-sidebar-layers.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/ev-sidebar-layers.c b/shell/ev-sidebar-layers.c
index c28218c2..6a723abb 100644
--- a/shell/ev-sidebar-layers.c
+++ b/shell/ev-sidebar-layers.c
@@ -21,7 +21,6 @@
#include "config.h"
#include <glib/gi18n.h>
-#include "gimpcellrenderertoggle.h"
#include "ev-document-layers.h"
#include "ev-sidebar-page.h"
@@ -245,7 +244,7 @@ ev_sidebar_layers_create_tree_view (EvSidebarLayers *ev_layers)
column = gtk_tree_view_column_new ();
- renderer = gimp_cell_renderer_toggle_new (EV_STOCK_VISIBLE);
+ renderer = gtk_cell_renderer_toggle_new ();
gtk_tree_view_column_pack_start (column, renderer, FALSE);
gtk_tree_view_column_set_attributes (column, renderer,
"active", EV_DOCUMENT_LAYERS_COLUMN_VISIBLE,
@@ -254,7 +253,7 @@ ev_sidebar_layers_create_tree_view (EvSidebarLayers *ev_layers)
"sensitive", EV_DOCUMENT_LAYERS_COLUMN_ENABLED,
NULL);
g_object_set (G_OBJECT (renderer),
- "xpad", 0,
+ "xpad", 4,
"ypad", 0,
NULL);
g_signal_connect (renderer, "toggled",