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

« back to all changes in this revision

Viewing changes to src/crash.c

  • 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:
131
131
      return FALSE;
132
132
 
133
133
   // Check whether the user doesn't want notifications
134
 
   if (!gconf_client_get_bool ((GConfClient*) ta->user_data,
135
 
       GCONF_KEY_APPORT_NOTIFICATIONS, NULL)) {
136
 
      g_debug("apport notifications disabled in gconf, not displaying crashes");
 
134
   if (!g_settings_get_boolean ((GSettings*) ta->user_data,
 
135
       SETTINGS_KEY_APPORT_NOTIFICATIONS)) {
 
136
      g_debug("apport notifications disabled, not displaying crashes");
137
137
      return FALSE;
138
138
   }
139
139
 
159
159
   crashreports_found = !exitcode || system_crashes;
160
160
 
161
161
   // in autolaunch mode, just open windows, 
162
 
   gboolean autolaunch = gconf_client_get_bool((GConfClient*) ta->user_data,
163
 
                                               GCONF_KEY_AUTO_LAUNCH, NULL); 
 
162
   gboolean autolaunch = g_settings_get_boolean((GSettings*) ta->user_data,
 
163
                                                SETTINGS_KEY_AUTO_LAUNCH); 
164
164
   if (autolaunch) {
165
165
      if (crashreports_found > 0) {
166
166
         g_debug("autolaunch mode, just running apport now");
214
214
crashreport_tray_icon_init (TrayApplet *ta)
215
215
{
216
216
 
217
 
        ta->user_data = gconf_client_get_default();
 
217
        ta->user_data = g_settings_new(SETTINGS_SCHEMA);
218
218
        g_signal_connect (G_OBJECT(ta->tray_icon),
219
219
                          "activate",
220
220
                          G_CALLBACK (button_release_cb),