aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2020-06-08 21:35:05 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2020-06-08 21:35:05 +0200
commit22f6632c9e3a992d8cfeadee002940355bd04e45 (patch)
tree6461a687e5b81b00cae8f320489227ee61660a05
parent2e5a7e16475785c4bd2e922b86a73fa02a160671 (diff)
downloads2u-22f6632c9e3a992d8cfeadee002940355bd04e45.tar
s2u-22f6632c9e3a992d8cfeadee002940355bd04e45.tar.gz
s2u-22f6632c9e3a992d8cfeadee002940355bd04e45.tar.bz2
s2u-22f6632c9e3a992d8cfeadee002940355bd04e45.tar.xz
s2u-22f6632c9e3a992d8cfeadee002940355bd04e45.zip
Fix build with libnotity 0.7
-rw-r--r--s2u.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/s2u.c b/s2u.c
index 4cb73c0..5f99830 100644
--- a/s2u.c
+++ b/s2u.c
@@ -55,6 +55,7 @@ static const char compile_id[] = "$Compile: " __FILE__ " " __DATE__ " " __TIME__
#include <signal.h>
#include <gdk/gdk.h>
#include <libnotify/notify.h>
+#include <gtk-2.0/gtk/gtkstock.h>
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
@@ -157,7 +158,7 @@ filter_function (DBusConnection * connection,
&error,
DBUS_TYPE_STRING, &string,
DBUS_TYPE_INVALID)) {
- n = notify_notification_new("MSEC", string, GTK_STOCK_INFO, NULL);
+ n = notify_notification_new("MSEC", string, GTK_STOCK_INFO);
if (!notify_notification_show (n, NULL)) {
g_printerr("notify_notification_show: failed to show notification\n");
}
@@ -180,7 +181,7 @@ filter_function (DBusConnection * connection,
DBUS_TYPE_STRING, &title,
DBUS_TYPE_STRING, &string,
DBUS_TYPE_INVALID)) {
- n = notify_notification_new(title, string, GTK_STOCK_INFO, NULL);
+ n = notify_notification_new(title, string, GTK_STOCK_INFO);
if (!notify_notification_show (n, NULL)) {
g_printerr("notify_notification_show: failed to show notification\n");
}