From a05a5e8317740d2486a474196530d6dfc724303e Mon Sep 17 00:00:00 2001 From: Matthias Clasen 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 @@ False 6 - - gtk-help - True - True - True - False - True - - - - False - True - 0 - - - gtk-close True -- 1.8.4.2