[PATCH 3/3] Connect nm-connection-editor to networ config button.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is not usable yet due to our window size constraints. We have to manage
nm's windows - resize/move them, add frame, make them modal. I have a patch
that embeds them in an anaconda window with gtk.Socket. We need also
notification system for foreign windows (giving us Xid of window).
---
 iw/network_gui.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/iw/network_gui.py b/iw/network_gui.py
index c3086d5..aa2c29a 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -25,6 +25,7 @@ import string
 from iw_gui import *
 import gui
 import network
+import iutil
 
 from constants import *
 import gettext
@@ -43,6 +44,8 @@ class NetworkWindow(InstallWindow):
         self.hostnameEntry = self.xml.get_widget("hostnameEntry")
         self.hostnameEntry.set_text(self.hostname)
 
+        self.xml.get_widget("netconfButton").connect("clicked", self._NMConfig)
+
         # pressing Enter in confirm == clicking Next
         self.hostnameEntry.connect("activate",
                                    lambda w: self.ics.setGrabNext(1))
@@ -81,3 +84,9 @@ class NetworkWindow(InstallWindow):
 
         self.anaconda.id.network.hostname = hostname
         return None
+
+    def _NMConfig(self, *args):
+        iutil.execWithRedirect("/usr/bin/nm-connection-editor", [],
+                               stdout = "/dev/tty5",
+                               stderr = "/dev/tty5")
+
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux