]>
Commit | Line | Data |
---|---|---|
15fbc490 | 1 | --- dhcpcd-ui-0.5.1/src/dhcpcd-gtk/main.c~ 2010-06-09 15:55:38.000000000 +0200 |
0438b8e2 | 2 | +++ dhcpcd-ui-0.5.1/src/dhcpcd-gtk/main.c 2011-04-07 11:43:05.405993616 +0200 |
3 | @@ -194,11 +194,15 @@ | |
4 | g_strfreev(msgs); | |
5 | if (nn != NULL) | |
6 | notify_notification_close(nn, NULL); | |
7 | +#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7) | |
8 | if (gtk_status_icon_get_visible(status_icon)) | |
15fbc490 | 9 | nn = notify_notification_new_with_status_icon(title, |
10 | msg, icon, status_icon); | |
11 | else | |
0438b8e2 | 12 | nn = notify_notification_new(title, msg, icon, NULL); |
13 | +#else | |
14 | + nn = notify_notification_new(title, msg, icon); | |
15fbc490 | 15 | +#endif |
15fbc490 | 16 | notify_notification_set_timeout(nn, 5000); |
17 | g_signal_connect(nn, "closed", G_CALLBACK(notify_closed), NULL); | |
18 | notify_notification_show(nn, NULL); |