summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-07-29 14:21:55 +0300
committermonsta <[email protected]>2016-07-29 14:21:55 +0300
commit23e0b7bbd5c675cdd508c5d27f20e324ee0fe840 (patch)
treea3c62e127e8c2d6144afdde0b7f20d5e69effb94 /shell/ev-window.c
parent5804d2d753e8f27189897f23f0dc414051910ac9 (diff)
downloadatril-23e0b7bbd5c675cdd508c5d27f20e324ee0fe840.tar.bz2
atril-23e0b7bbd5c675cdd508c5d27f20e324ee0fe840.tar.xz
get rid of build-dep on libmate-desktop
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 9ffcc872..20effead 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -41,10 +41,6 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
-#ifdef WITH_MATEDESKTOP
-#include <libmate-desktop/mate-gsettings.h>
-#endif
-
#include "egg-editable-toolbar.h"
#include "egg-toolbar-editor.h"
#include "egg-toolbars-model.h"
@@ -1549,13 +1545,10 @@ ev_window_setup_document (EvWindow *ev_window)
ev_window_ensure_settings (ev_window);
-#ifdef WITH_MATEDESKTOP
- if (mate_gsettings_schema_exists (MATE_LOCKDOWN_SCHEMA)) {
-#else
GSettingsSchema *schema_mate_lockdown_schema = g_settings_schema_source_lookup (g_settings_schema_source_get_default(), MATE_LOCKDOWN_SCHEMA, FALSE);
if (schema_mate_lockdown_schema != NULL) {
g_settings_schema_unref (schema_mate_lockdown_schema);
-#endif
+
if (!ev_window->priv->lockdown_settings)
ev_window->priv->lockdown_settings = g_settings_new (MATE_LOCKDOWN_SCHEMA);
g_signal_connect (ev_window->priv->lockdown_settings,