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

« back to all changes in this revision

Viewing changes to src/crash.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:
89
89
   if(!gtk_status_icon_get_visible(ta->tray_icon))
90
90
      return FALSE;
91
91
 
92
 
   GdkRectangle area;
93
 
   gtk_status_icon_get_geometry(ta->tray_icon, NULL, &area, NULL);
94
 
 
95
 
   // no usefull coordiante yet, do another timeout
96
 
   if(area.x <= 0 || area.y <= 0 || area.width <= 0 || area.height <= 0)
97
 
      return TRUE;
98
 
 
99
92
   // now show a notification handle 
100
 
   n = notify_notification_new_with_status_icon(
 
93
   n = notify_notification_new(
101
94
                                     _("Crash report detected"),
102
95
                                     _("An application has crashed on your "
103
96
                                       "system (now or in the past). "
104
97
                                       "Click on the notification icon to "
105
98
                                       "display details. "
106
99
                                       ),
107
 
                                     GTK_STOCK_DIALOG_INFO,
108
 
                                     ta->tray_icon);
109
 
        notify_notification_set_timeout (n, 60000);
110
 
        notify_notification_show (n, NULL);
111
 
        g_object_set_data (G_OBJECT(ta->tray_icon), "notification", n);
 
100
                                     GTK_STOCK_DIALOG_INFO);
 
101
   notify_notification_set_timeout (n, 60000);
 
102
   notify_notification_show (n, NULL);
112
103
 
113
 
        return FALSE;
 
104
   return FALSE;
114
105
}
115
106
 
116
107
static void