summaryrefslogtreecommitdiff
path: root/battstat
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-05-03 20:30:52 +0200
committerStefano Karapetsas <[email protected]>2014-05-03 20:30:52 +0200
commit50cf1584a9dec14dd880263354db671303ba4c42 (patch)
tree765dc84990ace7f6e5a1f707c9e2f3da41fa1bd4 /battstat
parentea97d2d8e5509579a079a49d01ae8cd0bf9065d9 (diff)
downloadmate-applets-50cf1584a9dec14dd880263354db671303ba4c42.tar.bz2
mate-applets-50cf1584a9dec14dd880263354db671303ba4c42.tar.xz
Use MateAboutDialog from libmate-desktop
Diffstat (limited to 'battstat')
-rw-r--r--battstat/Makefile.am2
-rw-r--r--battstat/battstat_applet.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/battstat/Makefile.am b/battstat/Makefile.am
index 4985f251..fec3e882 100644
--- a/battstat/Makefile.am
+++ b/battstat/Makefile.am
@@ -25,6 +25,7 @@ DIST_SUBDIRS = docs sounds apmlib
AM_CPPFLAGS = \
$(MATE_APPLETS4_CFLAGS) \
+ $(MATEDESKTOP_CFLAGS) \
$(LIBNOTIFY_CFLAGS) \
$(HAL_CFLAGS) \
$(UPOWER_CFLAGS) \
@@ -55,6 +56,7 @@ battstat_applet_2_SOURCES = \
battstat_applet_2_LDADD = \
$(MATE_APPLETS4_LIBS) \
+ $(MATEDESKTOP_LIBS) \
$(LIBNOTIFY_LIBS) \
$(HAL_LIBS) \
$(APMLIB) \
diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c
index 9de1ff7c..5ecac451 100644
--- a/battstat/battstat_applet.c
+++ b/battstat/battstat_applet.c
@@ -44,6 +44,8 @@
#include <libnotify/notify.h>
#endif
+#include <libmate-desktop/mate-aboutdialog.h>
+
#include "battstat.h"
#include "pixmaps.h"
@@ -1420,7 +1422,7 @@ about_cb( GtkAction *action, ProgressData *battstat )
/* true */ _("HAL backend enabled.") :
/* false */ _("Legacy (non-HAL) backend enabled.")));
- gtk_show_about_dialog( NULL,
+ mate_show_about_dialog( NULL,
"version", VERSION,
"copyright", "\xC2\xA9 2000 The Gnulix Society, "
"\xC2\xA9 2002-2005 Free Software Foundation and "