Blame SOURCES/0001-Remove-the-Help-button.patch

5b2f0d
From a05a5e8317740d2486a474196530d6dfc724303e Mon Sep 17 00:00:00 2001
5b2f0d
From: Matthias Clasen <mclasen@redhat.com>
5b2f0d
Date: Thu, 12 Dec 2013 11:31:58 -0500
5b2f0d
Subject: [PATCH] Remove the Help button
5b2f0d
5b2f0d
There is no help for alacarte, so don't show a non-functional
5b2f0d
Help button.
5b2f0d
5b2f0d
https://bugzilla.gnome.org/show_bug.cgi?id=720334
5b2f0d
---
5b2f0d
 Alacarte/MainWindow.py |  9 ---------
5b2f0d
 data/alacarte.ui       | 16 ----------------
5b2f0d
 2 files changed, 25 deletions(-)
5b2f0d
5b2f0d
diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
5b2f0d
index 2a3427f..7bd3106 100644
5b2f0d
--- a/Alacarte/MainWindow.py
5b2f0d
+++ b/Alacarte/MainWindow.py
5b2f0d
@@ -49,12 +49,6 @@ class MainWindow(object):
5b2f0d
         self.tree.get_object('move_up_button').set_sensitive(False)
5b2f0d
         self.tree.get_object('move_down_button').set_sensitive(False)
5b2f0d
         self.tree.get_object('new_separator_button').set_sensitive(False)
5b2f0d
-        accelgroup = Gtk.AccelGroup()
5b2f0d
-        keyval, modifier = Gtk.accelerator_parse('F1')
5b2f0d
-        accelgroup.connect(keyval, modifier, Gtk.AccelFlags.VISIBLE, self.on_help_button_clicked)
5b2f0d
-
5b2f0d
-        self.main_window = self.tree.get_object('mainwindow')
5b2f0d
-        self.main_window.add_accel_group(accelgroup)
5b2f0d
 
5b2f0d
         self.editor = None
5b2f0d
 
5b2f0d
@@ -427,9 +421,6 @@ class MainWindow(object):
5b2f0d
         after = items[path][3]
5b2f0d
         self.editor.moveItem(item.get_parent(), item, after=after)
5b2f0d
 
5b2f0d
-    def on_help_button_clicked(self, *args):
5b2f0d
-        Gtk.show_uri(Gdk.Screen.get_default(), "ghelp:user-guide#menu-editor", Gtk.get_current_event_time())
5b2f0d
-
5b2f0d
     def on_restore_button_clicked(self, button):
5b2f0d
         self.editor.restoreToSystem()
5b2f0d
 
5b2f0d
diff --git a/data/alacarte.ui b/data/alacarte.ui
5b2f0d
index e09ae88..28905c2 100644
5b2f0d
--- a/data/alacarte.ui
5b2f0d
+++ b/data/alacarte.ui
5b2f0d
@@ -51,22 +51,6 @@
5b2f0d
             <property name="can_focus">False</property>
5b2f0d
             <property name="spacing">6</property>
5b2f0d
             <child>
5b2f0d
-              <object class="GtkButton" id="help_button">
5b2f0d
-                <property name="label">gtk-help</property>
5b2f0d
-                <property name="visible">True</property>
5b2f0d
-                <property name="can_focus">True</property>
5b2f0d
-                <property name="can_default">True</property>
5b2f0d
-                <property name="receives_default">False</property>
5b2f0d
-                <property name="use_stock">True</property>
5b2f0d
-                <signal name="clicked" handler="on_help_button_clicked" swapped="no"/>
5b2f0d
-              </object>
5b2f0d
-              <packing>
5b2f0d
-                <property name="expand">False</property>
5b2f0d
-                <property name="fill">True</property>
5b2f0d
-                <property name="position">0</property>
5b2f0d
-              </packing>
5b2f0d
-            </child>
5b2f0d
-            <child>
5b2f0d
               <object class="GtkButton" id="close_button">
5b2f0d
                 <property name="label">gtk-close</property>
5b2f0d
                 <property name="visible">True</property>
5b2f0d
-- 
5b2f0d
1.8.4.2
5b2f0d