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

  • Committer: Jelmer Vernooij
  • Date: 2007-03-09 17:47:28 UTC
  • Revision ID: jelmer@samba.org-20070309174728-gljlmt9b7fu0rrn9
Add simple test for tortoise_bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import gtk
24
24
 
25
 
class StatusDialog(gtk.Dialog):
 
25
class StatusDialog(gtk.MessageDialog):
26
26
    """ Display Status window and perform the needed actions. """
27
27
    def __init__(self, wt, wtpath):
28
28
        """ Initialize the Status window. """
29
 
        super(StatusDialog, self).__init__(flags=gtk.DIALOG_MODAL, buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))
 
29
        super(StatusDialog, self).__init__(flags=gtk.DIALOG_MODAL, buttons=gtk.BUTTONS_OK)
30
30
        self.set_title("Working tree changes")
 
31
        self.set_image(gtk.Label("Working tree status"))
31
32
        self._create()
32
33
        self.wt = wt
33
34
        self.wtpath = wtpath
111
112
 
112
113
        self.treeview.expand_all()
113
114
    
 
115
    def display(self):
 
116
        """ Display the Diff window. """
 
117
        self.window.show_all()
 
118
 
114
119
    def close(self, widget=None):
115
120
        self.window.destroy()