[Xfce4-commits] [panel-plugins/xfce4-genmon-plugin] 26/27: Change the About dialog to the standard GTK3 about.
noreply at xfce.org
noreply at xfce.org
Tue May 31 21:30:09 CEST 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository panel-plugins/xfce4-genmon-plugin.
commit cc1c0f20ada75fdefe846da8a211e8b1e6ef9b0e
Author: ToZ <toz at localhost.localdomain>
Date: Sat May 21 21:00:19 2016 -0400
Change the About dialog to the standard GTK3 about.
---
panel-plugin/main.c | 40 ++++++++++++++++++++++++++++++++++++----
1 file changed, 36 insertions(+), 4 deletions(-)
diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 3b8823f..5150287 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -597,8 +597,9 @@ static void UpdateConf (void *p_pvPlugin)
/**************************************************************/
+/*
static void About (GtkWidget *w, void *unused)
-/* Called back when the About button in clicked */
+// Called back when the About button in clicked
{
xfce_dialog_show_info (NULL,
_("Cyclically spawns a script/program, captures its output "
@@ -607,7 +608,37 @@ static void About (GtkWidget *w, void *unused)
"(c) 2006 Julien Devemy <jujucece at gmail.com>"),
_("%s %s - Generic Monitor"),
PACKAGE, VERSION);
-}/* About() */
+}
+*/
+
+static void About (XfcePanelPlugin *plugin)
+{
+ GdkPixbuf *icon;
+
+ const gchar *auth[] =
+ {
+ "Roger Seguin <roger_seguin at msn.com>",
+ "Julien Devemy <jujucece at gmail.com>",
+ NULL
+ };
+
+ //g_return_if_fail (IS_PULSEAUDIO_PLUGIN (plugin));
+
+ icon = xfce_panel_pixbuf_from_source ("utilities-system-monitor", NULL, 32);
+ gtk_show_about_dialog (NULL,
+ "logo", icon,
+ "license", xfce_get_license_text (XFCE_LICENSE_TEXT_GPL),
+ "version", VERSION,
+ "program-name", PACKAGE,
+ "comments", _("Cyclically spawns a script/program, captures its output and displays the resulting string in the panel"),
+ "website", "http://goodies.xfce.org/projects/panel-plugins/xfce4-genmon-plugin",
+ "copyright", _("Copyright \xc2\xa9 2004 Roger Seguin\nCopyright \xc2\xa9 2006 Julien Devemy\n"),
+ "authors", auth,
+ NULL);
+
+ if (icon)
+ g_object_unref (G_OBJECT (icon));
+}
/**************************************************************/
@@ -785,8 +816,9 @@ static void genmon_construct (XfcePanelPlugin *plugin)
g_signal_connect (plugin, "size-changed", G_CALLBACK (genmon_set_size), genmon);
xfce_panel_plugin_menu_show_about (plugin);
- g_signal_connect (plugin, "about", G_CALLBACK (About), genmon);
-
+ //g_signal_connect (plugin, "about", G_CALLBACK (About), genmon);
+ g_signal_connect (plugin, "about", G_CALLBACK (About), plugin);
+
xfce_panel_plugin_menu_show_configure (plugin);
g_signal_connect (plugin, "configure-plugin",
G_CALLBACK (genmon_create_options), genmon);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list