/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/bookmark.py

  • Committer: Jelmer Vernooij
  • Date: 2006-09-27 17:49:18 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927174918-0e5c331b574d16a3
Don't pass along dialog context everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
class OliveBookmark:
31
31
    """ Display the Edit bookmark dialog and perform the needed actions. """
32
 
    def __init__(self, gladefile, comm, dialog):
 
32
    def __init__(self, gladefile, comm):
33
33
        """ Initialize the Edit bookmark dialog. """
34
34
        self.gladefile = gladefile
35
35
        self.glade = gtk.glade.XML(self.gladefile, 'window_bookmark', 'olive-gtk')
36
36
        
37
37
        # Communication object
38
38
        self.comm = comm
39
 
        # Dialog object
40
 
        self.dialog = dialog
41
39
        
42
40
        self.window = self.glade.get_widget('window_bookmark')
43
41
        
61
59
        
62
60
    def bookmark(self, widget):
63
61
        if self.entry_title.get_text() == '':
64
 
            self.dialog.error_dialog(_('No title given'),
 
62
            error_dialog(_('No title given'),
65
63
                                     _('Please specify a title to continue.'))
66
64
            return
67
65