From 50cf1584a9dec14dd880263354db671303ba4c42 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sat, 3 May 2014 20:30:52 +0200 Subject: Use MateAboutDialog from libmate-desktop --- battstat/Makefile.am | 2 ++ battstat/battstat_applet.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'battstat') 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 #endif +#include + #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 " -- cgit v1.2.1