/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/frontend/gtk/handler.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-07-17 14:00:33 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060717140033-99c11b1dc94f07e2
2006-07-17  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/frontend/gtk/dialog.py: some basic dialog stuff added
    * olive/frontend/gtk/handler.py: moved dialog stuff into dialog.py
    * olive/frontend/gtk/__init__.py: added Status column to filelist
    * olive/backend/fileops.py: implemented status()
    * TODO: added a TODO list

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
except:
28
28
        sys.exit(1)
29
29
 
 
30
from dialog import OliveDialog
 
31
 
30
32
class OliveHandler:
31
33
    """ Signal handler class for Olive. """
32
34
    def __init__(self, gladefile):
33
35
        self.gladefile = gladefile
34
 
    
35
 
    def about(self, widget):
36
 
        import olive.frontend.gtk
37
 
 
38
 
        # Load AboutDialog description
39
 
        dglade = gtk.glade.XML(self.gladefile, 'aboutdialog')
40
 
        dialog = dglade.get_widget('aboutdialog')
41
 
 
42
 
        # Set version
43
 
        dialog.set_version(olive.frontend.gtk.__version__)
 
36
        self.dialog = OliveDialog(self.gladefile)
 
37
    
 
38
    def on_about_activate(self, widget):
 
39
        self.dialog.about()
 
40
    
 
41
    def not_implemented(self, widget):
 
42
        """ Display a Not implemented error message. """
 
43
        self.dialog.error_dialog('This feature is not yet implemented.')
 
44