[epiphany] Add help buttons to the pdm and pref dialogs



commit d8373ce2759a8e790e658d511111017bb609bbdc
Author: Ekaterina Gerasimova <kittykat3756 gmail com>
Date:   Sun Jul 7 11:29:57 2013 +0100

    Add help buttons to the pdm and pref dialogs

 src/pdm-dialog.c              |    2 +-
 src/resources/epiphany.ui     |   16 +++++++++++++++-
 src/resources/prefs-dialog.ui |   16 +++++++++++++++-
 3 files changed, 31 insertions(+), 3 deletions(-)
---
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c
index 1cff2d2..80df90b 100644
--- a/src/pdm-dialog.c
+++ b/src/pdm-dialog.c
@@ -228,7 +228,7 @@ clear_all_dialog_response_cb (GtkDialog *dialog,
        if (response == GTK_RESPONSE_HELP)
        {
                /* Show help and return early */
-               ephy_gui_help (GTK_WIDGET (dialog), "clearing-personal-data");
+               ephy_gui_help (GTK_WIDGET (dialog), "data");
                return;
        }
 
diff --git a/src/resources/epiphany.ui b/src/resources/epiphany.ui
index bca48b5..48e8825 100644
--- a/src/resources/epiphany.ui
+++ b/src/resources/epiphany.ui
@@ -407,7 +407,20 @@
             <property name="can_focus">False</property>
             <property name="layout_style">end</property>
             <child>
-              <placeholder/>
+              <object class="GtkButton" id="helpbutton1">
+                <property name="label">gtk-help</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">False</property>
+                <property name="use_action_appearance">False</property>
+                <property name="use_stock">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">0</property>
+                <property name="secondary">True</property>
+              </packing>
             </child>
             <child>
               <object class="GtkButton" id="removeallbutton">
@@ -658,6 +671,7 @@
     </child>
     <action-widgets>
       <action-widget response="1">removeallbutton</action-widget>
+      <action-widget response="-11">helpbutton1</action-widget>
       <action-widget response="-7">closebutton1</action-widget>
     </action-widgets>
   </object>
diff --git a/src/resources/prefs-dialog.ui b/src/resources/prefs-dialog.ui
index 477762e..63ca72e 100644
--- a/src/resources/prefs-dialog.ui
+++ b/src/resources/prefs-dialog.ui
@@ -152,7 +152,20 @@
             <property name="can_focus">False</property>
             <property name="layout_style">end</property>
             <child>
-              <placeholder/>
+              <object class="GtkButton" id="helpbutton1">
+                <property name="label">gtk-help</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">False</property>
+                <property name="use_action_appearance">False</property>
+                <property name="use_stock">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">0</property>
+                <property name="secondary">True</property>
+              </packing>
             </child>
             <child>
               <object class="GtkButton" id="closebutton1">
@@ -1397,6 +1410,7 @@
       </object>
     </child>
     <action-widgets>
+      <action-widget response="-11">helpbutton1</action-widget>
       <action-widget response="-7">closebutton1</action-widget>
     </action-widgets>
   </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]