/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/menu.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-12-17 23:22:10 UTC
  • Revision ID: szilveszter.farkas@gmail.com-20061217232210-nxws311ray6wlpw3
Use OliveBookmarkDialog instead of OliveBookmark.

Fixed: #67922 (bookmarks in olive)

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
        else:
246
246
            warning_dialog(_('Location already bookmarked'),
247
247
                           _('The current directory is already bookmarked.\nSee the left panel for reference.'))
 
248
        
 
249
        self.app.refresh_left()
248
250
 
249
251
    def edit_bookmark(self, action):
250
252
        """ Left context menu -> Edit """
251
 
        from bookmark import OliveBookmark
252
 
 
 
253
        from bookmark import OliveBookmarkDialog
 
254
        
253
255
        if self.selected != None:
254
 
            bookmark = OliveBookmark(self.selected)
255
 
            bookmark.display()
 
256
            bookmark = OliveBookmarkDialog(self.selected, self.app.window)
 
257
            response = bookmark.run()
 
258
            
 
259
            if response != gtk.RESPONSE_NONE:
 
260
                bookmark.hide()
 
261
        
 
262
                if response == gtk.RESPONSE_OK:
 
263
                    self.app.refresh_left()
 
264
            
 
265
                bookmark.destroy()
256
266
 
257
267
    def remove_bookmark(self, action):
258
268
        """ Left context menu -> Remove """
260
270
        if self.selected != None:
261
271
            self.pref.remove_bookmark(self.selected)
262
272
            self.pref.write()
 
273
        
 
274
        self.app.refresh_left()
263
275
    
264
276
    def open_folder(self, action):
265
277
        """ Left context menu -> Open Folder """