Roy's Projects
/
dhcpcd-ui
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Install autostart entry to gnome folder.
[dhcpcd-ui]
/
src
/
dhcpcd-gtk
/
main.c
diff --git
a/src/dhcpcd-gtk/main.c
b/src/dhcpcd-gtk/main.c
index c66243a1709e8ae2081b7628cf62a2c77ac38279..bd2a432a40096117897f0d0fa43cd5d112f7de0f 100644
(file)
--- a/
src/dhcpcd-gtk/main.c
+++ b/
src/dhcpcd-gtk/main.c
@@
-34,6
+34,7
@@
static NotifyNotification *nn;
#endif
static NotifyNotification *nn;
#endif
+#include "config.h"
#include "dhcpcd-gtk.h"
static GtkStatusIcon *status_icon;
#include "dhcpcd-gtk.h"
static GtkStatusIcon *status_icon;
@@
-175,15
+176,13
@@
notify_close(void)
#endif
}
#endif
}
+#ifdef NOTIFY
static void
notify_closed(void)
{
static void
notify_closed(void)
{
-#ifdef NOTIFY
nn = NULL;
nn = NULL;
-#endif
}
}
-#ifdef NOTIFY
static void
notify(const char *title, const char *msg, const char *icon)
{
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);
_("Connecting to dhcpcd ..."));
gtk_status_icon_set_visible(status_icon, true);
+#ifdef NOTIFY
notify_init(PACKAGE);
notify_init(PACKAGE);
+#endif
g_message(_("Connecting ..."));
con = dhcpcd_open(&error);
g_message(_("Connecting ..."));
con = dhcpcd_open(&error);