2
A small wrapper utility for connecting to gconf.
4
Copyright 2009 Canonical Ltd.
7
Christoph Korn <c_korn@gmx.de>
9
This program is free software: you can redistribute it and/or modify it
10
under the terms of the GNU General Public License version 3, as published
11
by the Free Software Foundation.
13
This program is distributed in the hope that it will be useful, but
14
WITHOUT ANY WARRANTY; without even the implied warranties of
15
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
16
PURPOSE. See the GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License along
19
with this program. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef __GCONF_HELPER_H__
24
#define __GCONF_HELPER_H__ 1
26
#include <gconf/gconf-client.h>
28
#include <glib/gi18n.h>
30
#include <dbus/dbus-glib.h>
31
#include <dbus/dbus-glib-bindings.h>
33
#include <libdbusmenu-glib/server.h>
34
#include <libdbusmenu-glib/menuitem.h>
36
#define SUPPRESS_KEY "/apps/indicator-session/suppress_logout_restart_shutdown"
37
#define GLOBAL_DIR "/apps/indicator-session"
39
typedef struct _RestartShutdownLogoutMenuItems
41
DbusmenuMenuitem * logout_mi;
42
DbusmenuMenuitem * restart_mi;
43
DbusmenuMenuitem * shutdown_mi;
45
RestartShutdownLogoutMenuItems;
47
void update_menu_entries(RestartShutdownLogoutMenuItems*);
48
gboolean supress_confirmations (void);
50
#endif /* __GCONF_HELPER__ */