[alacarte] MainWindow: Remove more bare excepts
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [alacarte] MainWindow: Remove more bare excepts
- Date: Wed, 23 May 2012 19:00:47 +0000 (UTC)
commit 9e760a49ddd9bacdc6d0f719c45206acd73d519b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue May 1 15:42:25 2012 -0400
MainWindow: Remove more bare excepts
And remove more timeout shenanigans
Alacarte/MainWindow.py | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
index 0c54d12..f8d917a 100644
--- a/Alacarte/MainWindow.py
+++ b/Alacarte/MainWindow.py
@@ -219,11 +219,7 @@ class MainWindow:
menu_tree = self.tree.get_object('menu_tree')
menu_tree.set_model(self.menu_store)
for menu in self.menu_store:
- #this might not work for some reason
- try:
- menu_tree.expand_to_path(menu.path)
- except:
- pass
+ menu_tree.expand_to_path(menu.path)
menu_tree.get_selection().select_path((0,))
self.on_menu_tree_cursor_changed(menu_tree)
@@ -639,11 +635,7 @@ class MainWindow:
dialog.hide()
def on_close_button_clicked(self, button):
- try:
- self.tree.get_object('mainwindow').hide()
- except:
- pass
- GObject.timeout_add(10, self.quit)
+ self.quit()
def on_properties_button_clicked(self, button):
self.on_edit_properties_activate(None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]