[Xword-commits] r71 - in trunk: debian root/usr/bin
btb at garage.maemo.org
btb at garage.maemo.org
Sat May 10 00:13:18 EEST 2008
Author: btb
Date: 2008-05-10 00:13:17 +0300 (Sat, 10 May 2008)
New Revision: 71
Modified:
trunk/debian/changelog
trunk/root/usr/bin/xword
Log:
back out gtkrecentchooser stuff. interesting but useless for us
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2008-05-07 20:43:57 UTC (rev 70)
+++ trunk/debian/changelog 2008-05-09 21:13:17 UTC (rev 71)
@@ -1,9 +1,8 @@
xword (1.0.7) stable; urgency=low
* Use HildonBanner for notifications
- * Added dialog and menu for recent items
- -- Bradley Bell <bradleyb at u.washington.edu> Tue, 06 May 2008 19:11:36 -0700
+ -- Bradley Bell <bradleyb at u.washington.edu> Wed, 30 Apr 2008 19:55:35 -0700
xword (1.0.6) stable; urgency=low
Modified: trunk/root/usr/bin/xword
===================================================================
--- trunk/root/usr/bin/xword 2008-05-07 20:43:57 UTC (rev 70)
+++ trunk/root/usr/bin/xword 2008-05-09 21:13:17 UTC (rev 71)
@@ -1,6 +1,6 @@
#!/usr/bin/python
-__version__ = "1.0.7"
+__version__ = "1.0.6"
__license__ = """
Copyright (c) 2005-2006,
@@ -1366,14 +1366,6 @@
self.notify("%s could not be loaded" % fname)
return
self.last_file = fname
- recent_manager = gtk.recent_manager_get_default()
- recent_manager.add_full("file://" + fname, {
- 'mime_type': 'application/x-crossword',
- 'app_name': 'xword',
- 'app_exec': os.path.join(sys.path[0], sys.argv[0].split("/")[-1]) + ' %f',
- 'display_name': str(self.puzzle.title),
- 'description': str("\n".join([ self.puzzle.title, self.puzzle.author, self.puzzle.copyright ]))
- })
self.control = PuzzleController(self.puzzle)
self.setup_controller()
self.clue_widget.set_controller(self.control)
@@ -1731,7 +1723,6 @@
file_menu.set_submenu(menu)
append(menu, 'open', create_menu_item('Open', MENU_OPEN, 'O'))
- append(menu, 'recent', create_menu_item('Open Recent...', 'recent'))
append(menu, 'save', create_menu_item('Save', MENU_SAVE, 'S'))
if has_print:
append(menu, 'print', create_menu_item('Print...', MENU_PRINT, 'P'))
@@ -1752,19 +1743,6 @@
append(menu, 'clear_puzzle', create_menu_item('Clear Puzzle', 'Clear Puzzle'))
append(menu, 'notepad', create_menu_item('Notepad...', 'notepad'))
- recent_menu = gtk.MenuItem('Recent')
- menubar.append(recent_menu)
-
- menu = gtk.RecentChooserMenu()
- recent_menu.set_submenu(menu)
-
- menu.set_show_icons(False)
- menu.set_show_not_found(False)
- recent_filter = gtk.RecentFilter()
- recent_filter.add_mime_type('application/x-crossword')
- menu.set_filter(recent_filter)
- menu.connect('item-activated', self.recent_selected)
-
prefs_menu = gtk.MenuItem('Preferences')
menubar.append(prefs_menu)
@@ -1828,8 +1806,6 @@
self.skip_filled = not self.skip_filled
elif action == MENU_OPEN:
self.open_file()
- elif action == 'recent':
- self.open_recent()
elif action == MENU_SAVE:
self.save_file()
elif action == MENU_PRINT:
@@ -1858,13 +1834,6 @@
layout = -(action+1)
if layout <> self.layout: self.set_layout(layout)
- def recent_selected(self, recent_chooser):
- filename = recent_chooser.get_current_item().get_uri()
- if filename.startswith('file://'):
- filename = filename[7:]
- if file and os.path.exists(filename):
- self.do_open_file(filename)
-
def create_toolbar_item(self, label, icon, tooltip, is_toggle=False):
if icon:
img = gtk.Image()
@@ -2147,26 +2116,6 @@
else:
dlg.destroy()
- def open_recent(self):
- dlg = gtk.RecentChooserDialog("Recent Puzzles",
- None,
- None,
- (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
- gtk.STOCK_OPEN, gtk.RESPONSE_OK))
- dlg.set_show_icons(False)
- dlg.set_show_not_found(False)
- recent_filter = gtk.RecentFilter()
- recent_filter.add_mime_type('application/x-crossword')
- dlg.set_filter(recent_filter)
- dlg.set_default_response(gtk.RESPONSE_OK)
- if self.default_loc: dlg.set_current_folder(self.default_loc)
-
- response = dlg.run()
- if response == gtk.RESPONSE_OK:
- self.recent_selected(dlg)
-
- dlg.destroy()
-
def save_file(self):
def save_cb(w, save_dlg):
self.do_save_file(save_dlg.get_filename())
More information about the Xword-commits
mailing list