From 6217ba3214fb0284eb569ed22b5700ad2c6b5817 Mon Sep 17 00:00:00 2001 From: JosephMcc Date: Mon, 3 Apr 2017 17:51:57 -0700 Subject: 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. --- shell/Makefile.am | 2 -- shell/ev-sidebar-layers.c | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'shell') 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 -#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", -- cgit v1.2.1