FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Desktop

 
 
LinkBack Thread Tools
 
Old 02-19-2010, 02:18 PM
Radek Vykydal
 
Default Connect nm-connection-editor to network config button.

---
iw/network_gui.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/iw/network_gui.py b/iw/network_gui.py
index e6c223d..a7b52da 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("clic ked", self._NMConfig)
+
# pressing Enter in confirm == clicking Next
self.hostnameEntry.connect("activate",
lambda w: self.ics.setGrabNext(1))
@@ -81,3 +84,8 @@ class NetworkWindow(InstallWindow):

self.anaconda.network.hostname = hostname
return None
+
+ def _NMConfig(self, *args):
+ iutil.execWithRedirect("/usr/bin/nm-connection-editor", [],
+ stdout = "/dev/tty5",
+ stderr = "/dev/tty5")
--
1.6.6

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

Thread Tools




All times are GMT. The time now is 01:59 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org