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

  • Committer: John Arbash Meinel
  • Date: 2007-10-02 17:38:05 UTC
  • mto: (322.1.1 trunk) (330.3.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: john@arbash-meinel.com-20071002173805-m5kd4t5b4j5bpun9
Actually show the commit button.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
class CommitDialog(gtk.Dialog):
99
99
    """Implementation of Commit."""
100
100
 
101
 
    _question_dialog = question_dialog
102
 
 
103
101
    def __init__(self, wt, selected=None, parent=None):
104
102
        gtk.Dialog.__init__(self, title="Commit - Olive",
105
103
                                  parent=parent,
106
104
                                  flags=0,
107
105
                                  buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))
 
106
        self._question_dialog = question_dialog
 
107
 
108
108
        self._wt = wt
109
109
        self._selected = selected
110
110
        self.committed_revision_id = None # Nothing has been committed yet
304
304
        self._button_commit = gtk.Button(_("Comm_it"), use_underline=True)
305
305
        self._button_commit.connect('clicked', self._on_commit_clicked)
306
306
        self._button_commit.set_flags(gtk.CAN_DEFAULT)
 
307
        self._button_commit.show()
307
308
        self.action_area.pack_end(self._button_commit)
 
309
        self._button_commit.grab_default()
308
310
 
309
311
    def _add_to_right_table(self, widget, weight, expanding=False):
310
312
        """Add another widget to the table