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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-13 14:08:06 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-20060813140806-3364d3e02a086d51
Modified OliveDialog class interface; huge cleanups.

2006-08-13  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/frontend/gtk/branch.py: display number of revisions branched
    * olive/frontend/gtk/*: use new dialog interface with detailed descriptions
    * olive/frontend/gtk/dialog.py: modified according to GNOME HIG (primary
      and secondary text)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
import olive.backend.errors as errors
33
33
import olive.backend.info as info
34
34
 
35
 
from dialog import OliveDialog
36
 
 
37
35
class OliveInfo:
38
36
    """ Display Informations window and perform the needed actions. """
39
 
    def __init__(self, gladefile, comm):
 
37
    def __init__(self, gladefile, comm, dialog):
40
38
        """ Initialize the Informations window. """
41
39
        self.gladefile = gladefile
42
40
        self.glade = gtk.glade.XML(self.gladefile, 'window_info')
43
41
        
 
42
        # Communication object
44
43
        self.comm = comm
45
 
        
46
 
        self.dialog = OliveDialog(self.gladefile)
 
44
        # Dialog object
 
45
        self.dialog = dialog
47
46
        
48
47
        # Get the Informations window widget
49
48
        self.window = self.glade.get_widget('window_info')
483
482
    def display(self):
484
483
        """ Display the Informations window. """
485
484
        if self.notbranch:
486
 
            self.dialog.error_dialog('Directory is not a branch.')
 
485
            self.dialog.error_dialog('Directory is not a branch',
 
486
                                     'You can perform this action only in a branch.')
487
487
            self.close()
488
488
        else:
489
489
            self.window.show()