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

« back to all changes in this revision

Viewing changes to src/update-notifier.c

  • Committer: Michael Vogt
  • Date: 2011-10-05 10:09:25 UTC
  • mfrom: (639.1.6 app-indicator-port)
  • Revision ID: michael.vogt@ubuntu.com-20111005100925-c0j7d7k3706145uk
port to libappindicator (LP: #779382) to ensure its visible
under unity{,-2d}

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
        g_debug("trayicon_create()\n");
206
206
 
207
207
        /* setup widgets */
 
208
        un->name = name;
 
209
#ifdef HAVE_APP_INDICATOR
 
210
        un->indicator = app_indicator_new (name,
 
211
                                           name,
 
212
                                           APP_INDICATOR_CATEGORY_SYSTEM_SERVICES);
 
213
#else
208
214
        un->tray_icon = gtk_status_icon_new_from_icon_name (name);
209
 
        un->name = name;
210
215
        gtk_status_icon_set_visible (un->tray_icon, FALSE);
 
216
#endif
211
217
 
212
218
        return TRUE;
213
219
}
214
220
 
215
 
 
216
221
/* 
217
222
 the following files change:
218
223
 on "install":
471
476
 
472
477
   /* reboot required icon */
473
478
   un->reboot = g_new0 (TrayApplet, 1);
474
 
   trayapplet_create(un->reboot, "reboot-notifier");
 
479
   trayapplet_create(un->reboot, "un-reboot");
475
480
   reboot_tray_icon_init(un->reboot);
476
481
 
477
482
   /* crashreport detected icon */