summaryrefslogtreecommitdiff
path: root/battstat
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-02-28 12:39:47 +0100
committerStefano Karapetsas <[email protected]>2013-02-28 12:39:47 +0100
commit41389eb9c8c16917cbc4060b3769da95ecb64dd1 (patch)
tree8250f2b25c6dab84800709fa6ab8ee3ca44bd9a2 /battstat
parent286f8ea18490767bdafa2e588695f80f47d74707 (diff)
downloadmate-applets-41389eb9c8c16917cbc4060b3769da95ecb64dd1.tar.bz2
mate-applets-41389eb9c8c16917cbc4060b3769da95ecb64dd1.tar.xz
Use libnotify instead of libmatenotify
Diffstat (limited to 'battstat')
-rw-r--r--battstat/Makefile.am4
-rw-r--r--battstat/battstat_applet.c10
-rw-r--r--battstat/docs/C/mate-battstat.xml2
3 files changed, 8 insertions, 8 deletions
diff --git a/battstat/Makefile.am b/battstat/Makefile.am
index cd01741f..c4f98c2b 100644
--- a/battstat/Makefile.am
+++ b/battstat/Makefile.am
@@ -25,7 +25,7 @@ DIST_SUBDIRS = docs sounds apmlib
INCLUDES = \
$(MATE_APPLETS4_CFLAGS) \
- $(LIBMATENOTIFY_CFLAGS) \
+ $(LIBNOTIFY_CFLAGS) \
$(HAL_CFLAGS) \
$(UPOWER_CFLAGS) \
$(APMINC) \
@@ -55,7 +55,7 @@ battstat_applet_2_SOURCES = \
battstat_applet_2_LDADD = \
$(MATE_APPLETS4_LIBS) \
- $(LIBMATENOTIFY_LIBS) \
+ $(LIBNOTIFY_LIBS) \
$(HAL_LIBS) \
$(APMLIB) \
$(UPOWER_LIBS) \
diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c
index 3fd76401..05601e9a 100644
--- a/battstat/battstat_applet.c
+++ b/battstat/battstat_applet.c
@@ -40,8 +40,8 @@
#include <mate-panel-applet.h>
#include <mate-panel-applet-gsettings.h>
-#ifdef HAVE_LIBMATENOTIFY
-#include <libmatenotify/notify.h>
+#ifdef HAVE_LIBNOTIFY
+#include <libnotify/notify.h>
#endif
#include "battstat.h"
@@ -420,7 +420,7 @@ get_remaining (BatteryStatus *info)
static gboolean
battery_full_notify (GtkWidget *applet)
{
-#ifdef HAVE_LIBMATENOTIFY
+#ifdef HAVE_LIBNOTIFY
GError *error = NULL;
GdkPixbuf *icon;
gboolean result;
@@ -435,7 +435,7 @@ battery_full_notify (GtkWidget *applet)
GTK_ICON_LOOKUP_USE_BUILTIN,
NULL);
- NotifyNotification *n = notify_notification_new (_("Your battery is now fully recharged"), "", /* "battery" */ NULL, applet);
+ NotifyNotification *n = notify_notification_new (_("Your battery is now fully recharged"), "", /* "battery" */ NULL);
/* XXX: it would be nice to pass this as a named icon */
notify_notification_set_icon_from_pixbuf (n, icon);
@@ -462,7 +462,7 @@ battery_full_notify (GtkWidget *applet)
static void
battery_full_dialog (GtkWidget *applet)
{
- /* first attempt to use libmatenotify */
+ /* first attempt to use libnotify */
if (battery_full_notify (applet))
return;
diff --git a/battstat/docs/C/mate-battstat.xml b/battstat/docs/C/mate-battstat.xml
index 281be3ad..74e5ea60 100644
--- a/battstat/docs/C/mate-battstat.xml
+++ b/battstat/docs/C/mate-battstat.xml
@@ -382,7 +382,7 @@
</guilabel></para>
<para>
Selecting this option notifies when your battery is fully
- recharged. If you have compiled the &applet; with libmatenotify
+ recharged. If you have compiled the &applet; with libnotify
support a non-intrusive notification will popup from the monitor on
the panel.
</para>