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 --- timerapplet/Makefile.am | 3 ++- timerapplet/timerapplet.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'timerapplet') diff --git a/timerapplet/Makefile.am b/timerapplet/Makefile.am index 01517ff8..5ace281b 100644 --- a/timerapplet/Makefile.am +++ b/timerapplet/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = \ $(MATE_APPLETS4_CFLAGS) \ + $(MATEDESKTOP_CFLAGS) \ $(LIBNOTIFY_CFLAGS) \ -I$(srcdir) \ -DMATELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @@ -9,7 +10,7 @@ APPLET_LOCATION = $(libexecdir)/timer-applet libexec_PROGRAMS = timer-applet timer_applet_SOURCES = timerapplet.c -timer_applet_LDADD = $(MATE_APPLETS4_LIBS) $(LIBNOTIFY_LIBS) +timer_applet_LDADD = $(MATE_APPLETS4_LIBS) $(MATEDESKTOP_LIBS) $(LIBNOTIFY_LIBS) timer_applet_CFLAGS = $(WARN_CFLAGS) appletsdir = $(datadir)/mate-panel/applets diff --git a/timerapplet/timerapplet.c b/timerapplet/timerapplet.c index 05857f74..04596139 100644 --- a/timerapplet/timerapplet.c +++ b/timerapplet/timerapplet.c @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -246,7 +247,7 @@ timer_about_callback (GtkAction *action, TimerApplet *applet) { const char* authors[] = { "Stefano Karapetsas ", NULL }; - gtk_show_about_dialog(NULL, + mate_show_about_dialog(NULL, "version", VERSION, "copyright", "Copyright © 2014 Stefano Karapetsas", "authors", authors, -- cgit v1.2.1