Updating branch refs/heads/master
         to 909d0a0e5c17b148b7439db43a7ff10057473f88 (commit)
       from b3ac83a11688c77c7910286da194f58493c7308b (commit)

commit 909d0a0e5c17b148b7439db43a7ff10057473f88
Author: Landry Breuil <lan...@xfce.org>
Date:   Sun Apr 15 22:54:48 2012 +0200

    add about dialog

 icons/Makefile.am           |    3 +--
 panel-plugin/mount-plugin.c |   24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/icons/Makefile.am b/icons/Makefile.am
index 01a32a2..d4dc662 100644
--- a/icons/Makefile.am
+++ b/icons/Makefile.am
@@ -1,7 +1,6 @@
 hicolorSVGdir = $(datadir)/icons/hicolor/scalable/apps
 
-hicolorSVG_DATA = \    
-       xfce-mount.svg
+hicolorSVG_DATA = xfce-mount.svg
 
 EXTRA_DIST = $(hicolorSVG_DATA)
        
diff --git a/panel-plugin/mount-plugin.c b/panel-plugin/mount-plugin.c
index 7dc3a0c..25ae2a1 100644
--- a/panel-plugin/mount-plugin.c
+++ b/panel-plugin/mount-plugin.c
@@ -979,6 +979,27 @@ mounter_create_options (XfcePanelPlugin *plugin, t_mounter 
*mt)
     TRACE ("leaves mounter_create_options");
 }
 
+static void
+mounter_show_about(XfcePanelPlugin *plugin, t_mounter *mt)
+{
+   GdkPixbuf *icon;
+   const gchar *auth[] = { "Jean-Baptiste Dulong",
+                           "Fabian Nowak <timyst...@arcor.de>",
+                           "Landry Breuil <landry at xfce.org>", NULL };
+   icon = xfce_panel_pixbuf_from_source("drive-harddisk", NULL, 32);
+   gtk_show_about_dialog(NULL,
+      "logo", icon,
+      "license", xfce_get_license_text (XFCE_LICENSE_TEXT_GPL),
+      "version", PACKAGE_VERSION,
+      "program-name", PACKAGE_NAME,
+      "comments", _("Show partitions/devices and allow to mount/unmount them"),
+      "website", 
"http://goodies.xfce.org/projects/panel-plugins/xfce4-mount-plugin";,
+      "copyright", _("Copyright (c) 2005-2012\n"),
+      "authors", auth, NULL);
+
+   if(icon)
+      g_object_unref(G_OBJECT(icon));
+}
 
 static void
 mount_construct (XfcePanelPlugin *plugin)
@@ -1002,6 +1023,9 @@ mount_construct (XfcePanelPlugin *plugin)
     g_signal_connect (plugin, "configure-plugin",
                       G_CALLBACK (mounter_create_options), mounter);
 
+    xfce_panel_plugin_menu_show_about(plugin);
+    g_signal_connect (plugin, "about", G_CALLBACK (mounter_show_about), 
mounter);
+
     g_signal_connect (plugin, "size-changed", G_CALLBACK (mounter_set_size),
                          mounter);
 
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to