[Pkg-bazaar-commits] ./bzr-gtk/unstable r159: Use network manager for checking default of "Local Commit" setting rather than hiding the option completely.
Jelmer Vernooij
jelmer at samba.org
Fri Apr 10 07:49:37 UTC 2009
------------------------------------------------------------
revno: 159
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2007-02-03 18:00:25 +0100
message:
Use network manager for checking default of "Local Commit" setting rather than hiding the option completely.
modified:
commit.py
-------------- next part --------------
=== modified file 'commit.py'
--- a/commit.py 2007-02-03 16:53:23 +0000
+++ b/commit.py 2007-02-03 17:00:25 +0000
@@ -148,10 +148,13 @@
self._vpaned_main.add2(self._vbox_message)
self.vbox.pack_start(self._vpaned_main, True, True)
- if self._is_checkout and not have_nm:
+ if self._is_checkout:
self._check_local = gtk.CheckButton(_("_Only commit locally"),
use_underline=True)
self.vbox.pack_start(self._check_local, False, False)
+ if have_nm:
+ # 3 is the enum value for STATE_CONNECTED
+ self._check_local.set_active(dbus_iface.state() != 3)
self.vbox.pack_start(self._check_strict, False, False)
# Create the file list
@@ -208,10 +211,7 @@
return
if self._is_checkout:
- if have_nm:
- local = (dbus_iface.state() != 3)
- else:
- local = self._check_local.get_active()
+ local = self._check_local.get_active()
else:
local = False
More information about the Pkg-bazaar-commits
mailing list