/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: Jelmer Vernooij
  • Date: 2007-02-03 17:00:25 UTC
  • Revision ID: jelmer@samba.org-20070203170025-oneu0nbsup6p1mj1
Use network manager for checking default of "Local Commit" setting rather than hiding the option completely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
        self._vpaned_main.add2(self._vbox_message)
149
149
        
150
150
        self.vbox.pack_start(self._vpaned_main, True, True)
151
 
        if self._is_checkout and not have_nm:
 
151
        if self._is_checkout: 
152
152
            self._check_local = gtk.CheckButton(_("_Only commit locally"),
153
153
                                                use_underline=True)
154
154
            self.vbox.pack_start(self._check_local, False, False)
 
155
            if have_nm:
 
156
                # 3 is the enum value for STATE_CONNECTED
 
157
                self._check_local.set_active(dbus_iface.state() != 3)
155
158
        self.vbox.pack_start(self._check_strict, False, False)
156
159
        
157
160
        # Create the file list
208
211
                return
209
212
 
210
213
        if self._is_checkout:
211
 
            if have_nm:
212
 
                local = (dbus_iface.state() != 3)
213
 
            else:
214
 
                local = self._check_local.get_active()
 
214
            local = self._check_local.get_active()
215
215
        else:
216
216
            local = False
217
217