From 5fa93702237153bfb582c520063568bb2b1ddf59 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 16 Jun 2016 20:56:04 +0200 Subject: GTK+-3 gpm-tray-icon: use About dialog from GTK+ instead of forked one from libmate-desktop --- src/gpm-tray-icon.c | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'src/gpm-tray-icon.c') 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 #include #include +#if !GTK_CHECK_VERSION (3, 0, 0) #include +#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); } /** -- cgit v1.2.1