[gedit] plugins: remove headerbar help button code



commit b4746cc6d51ddb3b34e80a9806cbf6a2c4a80d4c
Author: Sebastien Lafargue <slaf66 gmail com>
Date:   Sat Feb 22 19:32:15 2014 +0100

    plugins: remove headerbar help button code
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724963
    
    In snippets and external tools managers, there's a headerbar help button
    not activated and not used, so let remove it.

 plugins/externaltools/tools/manager.py |    2 --
 plugins/externaltools/tools/tools.ui   |   19 -------------------
 plugins/snippets/snippets/snippets.ui  |   19 -------------------
 3 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/plugins/externaltools/tools/manager.py b/plugins/externaltools/tools/manager.py
index 92e686a..e2675c6 100644
--- a/plugins/externaltools/tools/manager.py
+++ b/plugins/externaltools/tools/manager.py
@@ -181,8 +181,6 @@ class Manager(GObject.Object):
         context.set_junction_sides(Gtk.JunctionSides.TOP)
         context.set_junction_sides(Gtk.JunctionSides.BOTTOM)
 
-        self['help_button'].connect("clicked", lambda b: 
Gio.Application.get_default().show_help(self.dialog, 'gedit', 'gedit-plugins-external-tools'))
-
         for name in ['input', 'output', 'applicability', 'save-files']:
             self.__init_combobox(name)
 
diff --git a/plugins/externaltools/tools/tools.ui b/plugins/externaltools/tools/tools.ui
index 5719cb1..ec2d70e 100644
--- a/plugins/externaltools/tools/tools.ui
+++ b/plugins/externaltools/tools/tools.ui
@@ -145,25 +145,6 @@
         <property name="visible">True</property>
         <property name="title" translatable="yes">Manage External Tools</property>
         <property name="show_close_button">True</property>
-        <child>
-          <object class="GtkButton" id="help_button">
-            <property name="valign">center</property>
-            <property name="tooltip_text" translatable="yes">Need help?</property>
-            <style>
-              <class name="image-button"/>
-            </style>
-            <child>
-              <object class="GtkImage" id="help_image">
-                <property name="visible">True</property>
-                <property name="icon_size">1</property>
-                <property name="icon_name">help-browser-symbolic</property>
-              </object>
-            </child>
-          </object>
-          <packing>
-            <property name="pack_type">start</property>
-          </packing>
-        </child>
       </object>
     </child>
     <child>
diff --git a/plugins/snippets/snippets/snippets.ui b/plugins/snippets/snippets/snippets.ui
index 7d4e833..7c19578 100644
--- a/plugins/snippets/snippets/snippets.ui
+++ b/plugins/snippets/snippets/snippets.ui
@@ -46,25 +46,6 @@
         <property name="visible">True</property>
         <property name="title" translatable="yes">Manage Snippets</property>
         <property name="show_close_button">True</property>
-        <child>
-          <object class="GtkButton" id="help_button">
-            <property name="valign">center</property>
-            <property name="tooltip_text" translatable="yes">Need help?</property>
-            <style>
-              <class name="image-button"/>
-            </style>
-            <child>
-              <object class="GtkImage" id="help_image">
-                <property name="visible">True</property>
-                <property name="icon_size">1</property>
-                <property name="icon_name">help-browser-symbolic</property>
-              </object>
-            </child>
-          </object>
-          <packing>
-            <property name="pack_type">start</property>
-          </packing>
-        </child>
       </object>
     </child>
     <child>


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