[Xfce4-commits] <xfce4-xkb-plugin:master> Add license and plugin version to the About dialog.

Igor Slepchin noreply at xfce.org
Wed Aug 22 23:24:07 CEST 2012


Updating branch refs/heads/master
         to ffbcc2b8473cd1b2896b11c4b1c6f2e226ec1cd8 (commit)
       from ac73bc9de624d322b318c2eda0ace7f0bee97a64 (commit)

commit ffbcc2b8473cd1b2896b11c4b1c6f2e226ec1cd8
Author: Igor Slepchin <igor.slepchin at gmail.com>
Date:   Thu Jul 19 16:47:59 2012 -0400

    Add license and plugin version to the About dialog.
    
    Also, let the compiler determine the length of authors array.

 panel-plugin/xkb-settings-dialog.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/xkb-settings-dialog.c b/panel-plugin/xkb-settings-dialog.c
index 18851f1..42b9d0c 100644
--- a/panel-plugin/xkb-settings-dialog.c
+++ b/panel-plugin/xkb-settings-dialog.c
@@ -175,7 +175,7 @@ void
 xfce_xkb_about (XfcePanelPlugin *plugin)
 {
     GtkWidget *about;
-    const gchar* authors[3] = {
+    const gchar* authors[] = {
         "Alexander Iliev <sasoiliev at mamul.org>",
         "Gauvain Pocentek <gauvainpocentek at gmail.com>",
         NULL
@@ -184,8 +184,12 @@ xfce_xkb_about (XfcePanelPlugin *plugin)
     about = gtk_about_dialog_new ();
     gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (about),
             _("Keyboard Layouts Plugin"));
+    gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (about),
+            PACKAGE_VERSION);
     gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (about),
             NULL);
+    gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (about),
+            xfce_get_license_text (XFCE_LICENSE_TEXT_GPL));
     gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about),
             (const gchar**) authors);
     gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (about),


More information about the Xfce4-commits mailing list