aboutsummaryrefslogtreecommitdiff
path: root/src/settings-helper.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-18 12:35:05 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-18 12:35:05 -0500
commitc9e0ebffe5cb3787c5437bd6ad8482ed8a432ddb (patch)
tree9aecd6278fab5fcf5ad1f95f922ce63cac5d0f8c /src/settings-helper.c
parenta8bf2f6f5c84909c70a890712bc8b27683a457d7 (diff)
downloadayatana-indicator-session-c9e0ebffe5cb3787c5437bd6ad8482ed8a432ddb.tar.gz
ayatana-indicator-session-c9e0ebffe5cb3787c5437bd6ad8482ed8a432ddb.tar.bz2
ayatana-indicator-session-c9e0ebffe5cb3787c5437bd6ad8482ed8a432ddb.zip
clearing house: the remainder of bugfixes & readability changes
Diffstat (limited to 'src/settings-helper.c')
-rw-r--r--src/settings-helper.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/settings-helper.c b/src/settings-helper.c
deleted file mode 100644
index 0ab188a..0000000
--- a/src/settings-helper.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
-A small wrapper utility for connecting to GSettings.
-
-Copyright 2009 Canonical Ltd.
-
-Authors:
- Christoph Korn <c_korn@gmx.de>
-
-This program is free software: you can redistribute it and/or modify it
-under the terms of the GNU General Public License version 3, as published
-by the Free Software Foundation.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranties of
-MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
-PURPOSE. See the GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along
-with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#include <gio/gio.h>
-
-#include "dbus-shared-names.h"
-#include "settings-helper.h"
-
-static GSettings* settings = NULL;
-
-static gboolean
-build_settings (void)
-{
- if (G_UNLIKELY(settings == NULL))
- {
- settings = g_settings_new (SESSION_SCHEMA);
- }
-
- return settings != NULL;
-}
-
-gboolean
-supress_confirmations (void)
-{
- g_return_val_if_fail (build_settings(), FALSE);
-
- return g_settings_get_boolean (settings, SUPPRESS_KEY) ;
-}