/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-30 21:58:07 UTC
  • mto: (330.3.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: john@arbash-meinel.com-20071030215807-9gqxqjz3nwpwd00r
To disable a checkbox it is set_property('activatable', False),
not set_active(False).
The latter just sets/clears the value, not the ability to function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
383
383
        self._files_store = liststore
384
384
        self._treeview_files.set_model(liststore)
385
385
        crt = gtk.CellRendererToggle()
386
 
        crt.set_active(not bool(self._pending))
 
386
        crt.set_property('activatable', not bool(self._pending))
387
387
        crt.connect("toggled", self._toggle_commit, self._files_store)
388
388
        if self._pending:
389
389
            name = _('Commit*')