X-Git-Url: https://roy.marples.name/git diff --git a/src/dhcpcd-gtk/main.c b/src/dhcpcd-gtk/main.c index c66243a..bd2a432 100644 --- a/src/dhcpcd-gtk/main.c +++ b/src/dhcpcd-gtk/main.c @@ -34,6 +34,7 @@ static NotifyNotification *nn; #endif +#include "config.h" #include "dhcpcd-gtk.h" static GtkStatusIcon *status_icon; @@ -175,15 +176,13 @@ notify_close(void) #endif } +#ifdef NOTIFY static void notify_closed(void) { -#ifdef NOTIFY nn = NULL; -#endif } -#ifdef NOTIFY static void notify(const char *title, const char *msg, const char *icon) { @@ -411,7 +410,9 @@ main(int argc, char *argv[]) _("Connecting to dhcpcd ...")); gtk_status_icon_set_visible(status_icon, true); +#ifdef NOTIFY notify_init(PACKAGE); +#endif g_message(_("Connecting ...")); con = dhcpcd_open(&error);