diff options
author | Stefano Karapetsas <[email protected]> | 2014-05-03 20:30:52 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-05-03 20:30:52 +0200 |
commit | 50cf1584a9dec14dd880263354db671303ba4c42 (patch) | |
tree | 765dc84990ace7f6e5a1f707c9e2f3da41fa1bd4 /timerapplet | |
parent | ea97d2d8e5509579a079a49d01ae8cd0bf9065d9 (diff) | |
download | mate-applets-50cf1584a9dec14dd880263354db671303ba4c42.tar.bz2 mate-applets-50cf1584a9dec14dd880263354db671303ba4c42.tar.xz |
Use MateAboutDialog from libmate-desktop
Diffstat (limited to 'timerapplet')
-rw-r--r-- | timerapplet/Makefile.am | 3 | ||||
-rw-r--r-- | timerapplet/timerapplet.c | 3 |
2 files changed, 4 insertions, 2 deletions
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 <gtk/gtk.h> #include <libnotify/notify.h> +#include <libmate-desktop/mate-aboutdialog.h> #include <mate-panel-applet.h> #include <mate-panel-applet-gsettings.h> @@ -246,7 +247,7 @@ timer_about_callback (GtkAction *action, TimerApplet *applet) { const char* authors[] = { "Stefano Karapetsas <[email protected]>", NULL }; - gtk_show_about_dialog(NULL, + mate_show_about_dialog(NULL, "version", VERSION, "copyright", "Copyright © 2014 Stefano Karapetsas", "authors", authors, |