summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-16 20:56:04 +0200
committerraveit65 <[email protected]>2016-06-16 20:56:04 +0200
commit5fa93702237153bfb582c520063568bb2b1ddf59 (patch)
tree15fcfca52b86ece4115b9dba2bea5f850431d86c /src
parent8e378d77e61d55ae84a4c8a855382fe3cd000767 (diff)
downloadmate-power-manager-5fa93702237153bfb582c520063568bb2b1ddf59.tar.bz2
mate-power-manager-5fa93702237153bfb582c520063568bb2b1ddf59.tar.xz
GTK+-3 gpm-tray-icon: use About dialog from GTK+ instead of forked one from libmate-desktop
Diffstat (limited to 'src')
-rw-r--r--src/gpm-tray-icon.c32
1 files changed, 19 insertions, 13 deletions
diff --git a/src/gpm-tray-icon.c b/src/gpm-tray-icon.c
index 3dcfae2..f4b0b94 100644
--- a/src/gpm-tray-icon.c
+++ b/src/gpm-tray-icon.c
@@ -39,7 +39,9 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <libupower-glib/upower.h>
+#if !GTK_CHECK_VERSION (3, 0, 0)
#include <libmate-desktop/mate-aboutdialog.h>
+#endif
#include "egg-debug.h"
@@ -183,20 +185,24 @@ gpm_tray_icon_show_about_cb (GtkMenuItem *item, gpointer data)
NULL
};
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_show_about_dialog (NULL,
+#else
mate_show_about_dialog (NULL,
- "program-name", _("Power Manager"),
- "version", VERSION,
- "comments", _("Power management daemon"),
- "copyright", _("Copyright \xC2\xA9 2011-2014 MATE developers"),
- "authors", authors,
- /* Translators should localize the following string
- * which will be displayed at the bottom of the about
- * box to give credit to the translator(s).
- */
- "translator-credits", _("translator-credits"),
- "logo-icon-name", "mate-power-manager",
- "website", "http://www.mate-desktop.org",
- NULL);
+#endif
+ "program-name", _("Power Manager"),
+ "version", VERSION,
+ "comments", _("Power management daemon"),
+ "copyright", _("Copyright \xC2\xA9 2011-2016 MATE developers"),
+ "authors", authors,
+ /* Translators should localize the following string
+ * which will be displayed at the bottom of the about
+ * box to give credit to the translator(s).
+ */
+ "translator-credits", _("translator-credits"),
+ "logo-icon-name", "mate-power-manager",
+ "website", "http://www.mate-desktop.org",
+ NULL);
}
/**