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

Igor Slepchin noreply at xfce.org
Wed Mar 27 00:12:04 CET 2013


Updating branch refs/heads/4.10_panel_support
         to c7e8f482fd2ffd49feda3feea729f24a88271f37 (commit)
       from c258a60c55071a4c6fc100afddd7d0edc41dd192 (commit)

commit c7e8f482fd2ffd49feda3feea729f24a88271f37
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.
    (cherry picked from commit ffbcc2b8473cd1b2896b11c4b1c6f2e226ec1cd8)

 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 e792725..060dac9 100644
--- a/panel-plugin/xkb-settings-dialog.c
+++ b/panel-plugin/xkb-settings-dialog.c
@@ -747,7 +747,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
@@ -756,8 +756,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