diff options
author | Ted Gould <ted@gould.cx> | 2010-03-04 12:19:47 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-04 12:19:47 -0600 |
commit | 36cd4b96aef17ca1ea48d3a0e42f4dea057fd056 (patch) | |
tree | 17bdb456db0f30375c1b3466ed0b1d459049ca91 /src/gconf-helper.h | |
parent | 752b8803e71fffa7cd90fe63e0c97603d69d80d7 (diff) | |
parent | 2b85f39462428c849c00b16ac35e2197d8cb51f5 (diff) | |
download | ayatana-indicator-session-36cd4b96aef17ca1ea48d3a0e42f4dea057fd056.tar.gz ayatana-indicator-session-36cd4b96aef17ca1ea48d3a0e42f4dea057fd056.tar.bz2 ayatana-indicator-session-36cd4b96aef17ca1ea48d3a0e42f4dea057fd056.zip |
* Upstream Release 0.2.5
* Restart required menu item when it's required for updates
* New logout dialogs.
Diffstat (limited to 'src/gconf-helper.h')
-rw-r--r-- | src/gconf-helper.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/gconf-helper.h b/src/gconf-helper.h new file mode 100644 index 0000000..951bb0f --- /dev/null +++ b/src/gconf-helper.h @@ -0,0 +1,50 @@ +/* +A small wrapper utility for connecting to gconf. + +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/>. +*/ + + +#ifndef __GCONF_HELPER_H__ +#define __GCONF_HELPER_H__ 1 + +#include <gconf/gconf-client.h> + +#include <glib/gi18n.h> + +#include <dbus/dbus-glib.h> +#include <dbus/dbus-glib-bindings.h> + +#include <libdbusmenu-glib/server.h> +#include <libdbusmenu-glib/menuitem.h> + +#define SUPPRESS_KEY "/apps/indicator-session/suppress_logout_restart_shutdown" +#define GLOBAL_DIR "/apps/indicator-session" + +typedef struct _RestartShutdownLogoutMenuItems +{ + DbusmenuMenuitem * logout_mi; + DbusmenuMenuitem * restart_mi; + DbusmenuMenuitem * shutdown_mi; +} +RestartShutdownLogoutMenuItems; + +void update_menu_entries(RestartShutdownLogoutMenuItems*); +gboolean supress_confirmations (void); + +#endif /* __GCONF_HELPER__ */ |