diff options
author | JosephMcc <[email protected]> | 2017-04-03 17:51:57 -0700 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-12 19:48:34 +0200 |
commit | 6217ba3214fb0284eb569ed22b5700ad2c6b5817 (patch) | |
tree | a3235c6332fdc0f9a90233030389ffd5a34ec40b /shell | |
parent | 94c2d848c4c71e600d92cc7f0a2b9e75ddf0feab (diff) | |
download | atril-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')
-rw-r--r-- | shell/Makefile.am | 2 | ||||
-rw-r--r-- | shell/ev-sidebar-layers.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am index 162c21b2..38774613 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -6,7 +6,6 @@ AM_CPPFLAGS= \ -I$(top_srcdir)/cut-n-paste/zoom-control/ \ -I$(top_srcdir)/cut-n-paste/toolbar-editor/ \ -I$(top_srcdir)/cut-n-paste/totem-screensaver/ \ - -I$(top_srcdir)/cut-n-paste/gimpcellrenderertoggle/ \ -I$(top_srcdir)/cut-n-paste/smclient/ \ -I$(top_srcdir)/libdocument \ -I$(top_builddir)/libdocument \ @@ -104,7 +103,6 @@ atril_LDADD= \ $(top_builddir)/cut-n-paste/zoom-control/libephyzoom.la \ $(top_builddir)/cut-n-paste/toolbar-editor/libtoolbareditor.la \ $(top_builddir)/cut-n-paste/totem-screensaver/libtotemscrsaver.la \ - $(top_builddir)/cut-n-paste/gimpcellrenderertoggle/libgimpcellrenderertoggle.la \ $(top_builddir)/cut-n-paste/smclient/libsmclient.la \ $(top_builddir)/properties/libevproperties.la \ $(top_builddir)/libdocument/libatrildocument.la \ 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", |