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

« back to all changes in this revision

Viewing changes to src/hooks.c

  • Committer: Martin Pitt
  • Date: 2011-06-08 07:28:28 UTC
  • Revision ID: martin.pitt@canonical.com-20110608072828-g2ss8i57tz1waj6j
Port to current libnotify 0.7 API. Bump libnotify-dev build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
550
550
   if((d && gtk_widget_get_visible(d)) || priv->active_notification != NULL)
551
551
      return FALSE;
552
552
 
553
 
   GdkRectangle area;
554
 
   gtk_status_icon_get_geometry(ta->tray_icon, NULL, &area, NULL);
555
 
   // no usefull coordiante yet, do another timeout
556
 
   if(area.x <= 0 || area.y <= 0 || area.width <= 0 || area.height <= 0)
557
 
      return TRUE;
558
 
 
559
553
   NotifyNotification *n;
560
554
   GdkPixbuf* pix;
561
 
   n = notify_notification_new_with_status_icon(
 
555
   n = notify_notification_new(
562
556
                               _("Information available"),
563
557
                               _("Click on the notification icon"
564
558
                                 " to show the available information.\n"),
565
 
                               NULL, 
566
 
                               ta->tray_icon);
 
559
                               NULL);
567
560
   
568
561
   pix = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), 
569
562
                                  GTK_STOCK_DIALOG_INFO, 48,0,NULL);