~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/update-notifier.h

  • Committer: Michael Terry
  • Date: 2011-07-13 14:54:42 UTC
  • mto: This revision was merged to the branch mainline in revision 631.
  • Revision ID: michael.terry@canonical.com-20110713145442-4b0pkrbebadn99h6
convert to gsettings

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <gtk/gtk.h>
24
24
#include <glib/gi18n.h>
25
 
#include <gconf/gconf.h>
26
 
#include <gconf/gconf-client.h>
27
25
 
28
26
#define CLIPBOARD_NAME  "UPGRADE_NOTIFIER_SELECTION"
29
 
#define GCONF_KEY_DEFAULT_ACTION "/apps/update-notifier/default_action"
30
 
#define GCONF_KEY_NO_UPDATE_NOTIFICATIONS "/apps/update-notifier/no_show_notifications"
31
 
#define GCONF_KEY_APPORT_NOTIFICATIONS "/apps/update-notifier/show_apport_crashes"
32
 
#define GCONF_KEY_END_SYSTEM_UIDS "/apps/update-notifier/end_system_uids"
33
 
#define GCONF_KEY_AUTO_LAUNCH "/apps/update-notifier/auto_launch"
34
 
#define GCONF_KEY_AUTO_LAUNCH_INTERVAL "/apps/update-notifier/regular_auto_launch_interval"
35
 
#define GCONF_KEY_HIDE_REBOOT "/apps/update-notifier/hide_reboot_notification"
36
 
#define GCONF_KEY_LAST_LAUNCH "/apps/update-manager/launch_time"
37
 
#define GCONF_KEY_LAST_RELEASE_CHECK "/apps/update-notifier/release_check_time"
 
27
 
 
28
#define SETTINGS_SCHEMA "com.canonical.update-notifier"
 
29
#define SETTINGS_KEY_NO_UPDATE_NOTIFICATIONS "no-show-notifications"
 
30
#define SETTINGS_KEY_APPORT_NOTIFICATIONS "show-apport-crashes"
 
31
#define SETTINGS_KEY_END_SYSTEM_UIDS "end-system-uids"
 
32
#define SETTINGS_KEY_AUTO_LAUNCH "auto-launch"
 
33
#define SETTINGS_KEY_AUTO_LAUNCH_INTERVAL "regular-auto-launch-interval"
 
34
#define SETTINGS_KEY_HIDE_REBOOT "hide-reboot-notification"
 
35
#define SETTINGS_KEY_LAST_RELEASE_CHECK "release-check-time"
 
36
 
 
37
#define SETTINGS_UM_SCHEMA "com.ubuntu.update-manager"
 
38
#define SETTINGS_UM_KEY_LAST_LAUNCH "launch-time"
38
39
 
39
40
#define HOOKS_DIR "/var/lib/update-notifier/user.d/"
40
41
#define CRASHREPORT_HELPER "/usr/share/apport/apport-checkreports"
87
88
   TrayApplet *hook;
88
89
   TrayApplet *crashreport;
89
90
 
90
 
   GConfClient *gconf;
91
 
 
92
91
   guint update_finished_timer; 
93
92
 
94
93