summaryrefslogtreecommitdiff
path: root/command
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 /command
parentea97d2d8e5509579a079a49d01ae8cd0bf9065d9 (diff)
downloadmate-applets-50cf1584a9dec14dd880263354db671303ba4c42.tar.bz2
mate-applets-50cf1584a9dec14dd880263354db671303ba4c42.tar.xz
Use MateAboutDialog from libmate-desktop
Diffstat (limited to 'command')
-rw-r--r--command/Makefile.am3
-rw-r--r--command/command.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/command/Makefile.am b/command/Makefile.am
index 42bcaa5e..e9df3c81 100644
--- a/command/Makefile.am
+++ b/command/Makefile.am
@@ -1,5 +1,6 @@
AM_CPPFLAGS = \
$(MATE_APPLETS4_CFLAGS) \
+ $(MATEDESKTOP_CFLAGS) \
-I$(srcdir) \
-DMATELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
$(DISABLE_DEPRECATED_CFLAGS)
@@ -8,7 +9,7 @@ APPLET_LOCATION = $(libexecdir)/command-applet
libexec_PROGRAMS = command-applet
command_applet_SOURCES = command.c
-command_applet_LDADD = $(MATE_APPLETS4_LIBS)
+command_applet_LDADD = $(MATE_APPLETS4_LIBS) $(MATEDESKTOP_LIBS)
command_applet_CFLAGS = $(WARN_CFLAGS)
appletsdir = $(datadir)/mate-panel/applets
diff --git a/command/command.c b/command/command.c
index dc27ea62..e7113b65 100644
--- a/command/command.c
+++ b/command/command.c
@@ -27,6 +27,7 @@
#include <glib/gi18n.h>
#include <gio/gio.h>
#include <gtk/gtk.h>
+#include <libmate-desktop/mate-aboutdialog.h>
#include <mate-panel-applet.h>
#include <mate-panel-applet-gsettings.h>
@@ -103,7 +104,7 @@ command_about_callback (GtkAction *action, CommandApplet *command_applet)
{
const char* authors[] = { "Stefano Karapetsas <[email protected]>", NULL };
- gtk_show_about_dialog(NULL,
+ mate_show_about_dialog(NULL,
"version", VERSION,
"copyright", "Copyright © 2013-2014 Stefano Karapetsas",
"authors", authors,