[Xfce4-commits] [panel-plugins/xfce4-sample-plugin] 12/13: Create an "About" dialog
noreply at xfce.org
noreply at xfce.org
Sun Apr 30 20:29:16 CEST 2017
This is an automated email from the git hooks/post-receive script.
skunnyk pushed a commit to branch master
in repository panel-plugins/xfce4-sample-plugin.
commit a93c1e863b6e649f1e339b055e3d0bc636fc7f67
Author: Romain B <skunnyk at alteroot.org>
Date: Sun Apr 30 20:12:15 2017 +0200
Create an "About" dialog
---
panel-plugin/sample-dialogs.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/panel-plugin/sample-dialogs.c b/panel-plugin/sample-dialogs.c
index d3a9b6c..b046883 100644
--- a/panel-plugin/sample-dialogs.c
+++ b/panel-plugin/sample-dialogs.c
@@ -110,4 +110,26 @@ sample_about (XfcePanelPlugin *plugin)
{
/* about dialog code. you can use the GtkAboutDialog
* or the XfceAboutInfo widget */
+ GdkPixbuf *icon;
+
+ const gchar *auth[] =
+ {
+ "Xfce Dev <xfce4-dev at xfce.org>",
+ NULL
+ };
+
+ icon = xfce_panel_pixbuf_from_source ("xfce4-sample-plugin", 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", _("This is a sample plugin"),
+ "website", PLUGIN_WEBSITE,
+ "copyright", _("Copyright \xc2\xa9 2006-2017 Xfce Dev\n"),
+ "authors", auth,
+ NULL);
+
+ if (icon)
+ g_object_unref (G_OBJECT (icon));
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list