aboutsummaryrefslogtreecommitdiff
path: root/src/gtk-dialog/gconf-helper.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-08 10:14:27 -0500
committerTed Gould <ted@canonical.com>2009-09-08 10:14:27 -0500
commit74caa096a9fac06420704d9f8db08c7864d805a0 (patch)
treef85d783106eb8b1f28d81ec89f67ad4e14b865a2 /src/gtk-dialog/gconf-helper.c
parent44ecddced2e977719ac661a8ed06969d1df0400b (diff)
parent85799abbe897e0f1e08b8d594716ab34b543d9fd (diff)
downloadayatana-indicator-session-74caa096a9fac06420704d9f8db08c7864d805a0.tar.gz
ayatana-indicator-session-74caa096a9fac06420704d9f8db08c7864d805a0.tar.bz2
ayatana-indicator-session-74caa096a9fac06420704d9f8db08c7864d805a0.zip
Merging in c_korn's branch.
Diffstat (limited to 'src/gtk-dialog/gconf-helper.c')
-rw-r--r--src/gtk-dialog/gconf-helper.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gtk-dialog/gconf-helper.c b/src/gtk-dialog/gconf-helper.c
new file mode 100644
index 0000000..0bd21ad
--- /dev/null
+++ b/src/gtk-dialog/gconf-helper.c
@@ -0,0 +1,32 @@
+/*
+A small wrapper utility to load indicators and put them as menu items
+into the gnome-panel using it's applet interface.
+
+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 <gconf/gconf-client.h>
+
+#include "gconf-helper.h"
+
+gboolean
+supress_confirmations (void) {
+ GConfClient *client = gconf_client_get_default ();
+ return gconf_client_get_bool (client, SUPPRESS_KEY, NULL) ;
+}