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