[Xfce4-commits] [xfce/xfce4-settings] 01/01: Add support for versioned help desktop files

noreply at xfce.org noreply at xfce.org
Wed Aug 27 02:16:07 CEST 2014


This is an automated email from the git hooks/post-receive script.

bluesabre pushed a commit to branch master
in repository xfce/xfce4-settings.

commit 57120979e92da4d841ecc4c704ec37ecde490c5c
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sun Mar 9 10:52:45 2014 +0300

    Add support for versioned help desktop files
    
    Signed-off-by: Sean Davis <smd.seandavis at gmail.com>
---
 xfce4-settings-manager/xfce-settings-manager-dialog.c |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/xfce4-settings-manager/xfce-settings-manager-dialog.c b/xfce4-settings-manager/xfce-settings-manager-dialog.c
index 39e33ff..6863455 100644
--- a/xfce4-settings-manager/xfce-settings-manager-dialog.c
+++ b/xfce4-settings-manager/xfce-settings-manager-dialog.c
@@ -79,6 +79,7 @@ struct _XfceSettingsManagerDialog
 
     gchar          *help_page;
     gchar          *help_component;
+    gchar          *help_version;
 };
 
 typedef struct
@@ -290,6 +291,7 @@ xfce_settings_manager_dialog_finalize (GObject *object)
 
     g_free (dialog->help_page);
     g_free (dialog->help_component);
+    g_free (dialog->help_version);
 
     g_free (dialog->filter_text);
 
@@ -334,9 +336,11 @@ xfce_settings_manager_dialog_response (GtkDialog *widget,
         else
             help_component = "xfce4-settings";
 
-        xfce_dialog_show_help (GTK_WINDOW (widget),
-                               help_component,
-                               dialog->help_page, NULL);
+        xfce_dialog_show_help_with_version (GTK_WINDOW (widget),
+                                            help_component,
+                                            dialog->help_page,
+                                            NULL,
+                                            dialog->help_version);
     }
     else
     {
@@ -599,6 +603,8 @@ xfce_settings_manager_dialog_go_back (XfceSettingsManagerDialog *dialog)
     dialog->help_page = NULL;
     g_free (dialog->help_component);
     dialog->help_component = NULL;
+    g_free (dialog->help_version);
+    dialog->help_version = NULL;
 
     gtk_widget_set_sensitive (dialog->button_back, FALSE);
     gtk_widget_set_sensitive (dialog->button_help, TRUE);
@@ -844,6 +850,7 @@ xfce_settings_manager_dialog_spawn (XfceSettingsManagerDialog *dialog,
         {
             dialog->help_page = g_strdup (xfce_rc_read_entry (rc, "X-XfceHelpPage", NULL));
             dialog->help_component = g_strdup (xfce_rc_read_entry (rc, "X-XfceHelpComponent", NULL));
+            dialog->help_version = g_strdup (xfce_rc_read_entry (rc, "X-XfceHelpVersion", NULL));
         }
 
         xfce_rc_close (rc);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list