/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-27 23:43:01 UTC
  • Revision ID: jelmer@samba.org-20070327234301-jbxx1kaf66nj7ww4
Fix status dialog size.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import gtk
24
24
 
25
 
class StatusDialog(gtk.MessageDialog):
 
25
class StatusDialog(gtk.Dialog):
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.BUTTONS_OK)
 
29
        super(StatusDialog, self).__init__(flags=gtk.DIALOG_MODAL, buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))
30
30
        self.set_title("Working tree changes")
31
 
        self.set_image(gtk.Label("Working tree status"))
32
31
        self._create()
33
32
        self.wt = wt
34
33
        self.wtpath = wtpath