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

« back to all changes in this revision

Viewing changes to src/hooks.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:
670
670
   assert(button_next);
671
671
 
672
672
   // check if we do a notification or a dialog
673
 
   GConfClient *gconf = gconf_client_get_default();
674
 
   if(gconf_client_get_bool(gconf, GCONF_KEY_AUTO_LAUNCH, NULL)) {
 
673
   GSettings *settings = g_settings_new(SETTINGS_SCHEMA);
 
674
   if(g_settings_get_boolean(settings, SETTINGS_KEY_AUTO_LAUNCH)) {
675
675
      g_debug_hooks("showing hooks with focus on map == FALSE");
676
676
      if (unseen_count < 2)
677
677
         gtk_widget_hide(button_next);
680
680
      show_hooks(ta, FALSE);
681
681
      return TRUE;
682
682
   }
 
683
   g_object_unref(settings);
683
684
 
684
685
   // no dialog, do the notification
685
686
   if((unseen_count > 0) && !gtk_status_icon_get_visible (ta->tray_icon))