Search
j0ke.net Open Build Service
>
Projects
>
virtualization
>
virt-manager
> virtman-vif.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File virtman-vif.diff of Package virt-manager
diff -Nuar virt-manager-0.5.3.orig/src/virtManager/addhardware.py virt-manager-0.5.3/src/virtManager/addhardware.py --- virt-manager-0.5.3.orig/src/virtManager/addhardware.py 2008-04-04 15:52:00.000000000 -0600 +++ virt-manager-0.5.3/src/virtManager/addhardware.py 2008-04-04 15:53:17.000000000 -0600 @@ -313,7 +313,7 @@ else: dev = self.window.get_widget("net-device") model = dev.get_model() - return ["bridge", model.get_value(dev.get_active_iter(), 0)] + return ["bridge", model.get_value(dev.get_active_iter(), 2)] def get_config_macaddr(self): macaddr = None @@ -348,7 +348,10 @@ net = self.get_config_network() if net[0] == "bridge": self.window.get_widget("summary-net-type").set_text(_("Shared physical device")) - self.window.get_widget("summary-net-target").set_text(net[1]) + if net[1] != None: + self.window.get_widget("summary-net-target").set_text(net[1]) + else: + self.window.get_widget("summary-net-target").set_text(_("Default")) elif net[0] == "network": self.window.get_widget("summary-net-type").set_text(_("Virtual network")) self.window.get_widget("summary-net-target").set_text(net[1]) diff -Nuar virt-manager-0.5.3.orig/src/virtManager/host.py virt-manager-0.5.3/src/virtManager/host.py --- virt-manager-0.5.3.orig/src/virtManager/host.py 2008-01-10 18:17:51.000000000 -0700 +++ virt-manager-0.5.3/src/virtManager/host.py 2008-04-04 15:54:26.000000000 -0600 @@ -75,6 +75,9 @@ self.window.get_widget("performance-table").attach(self.memory_usage_graph, 1, 2, 1, 2) self.add = None + # turn off "Virtual Networks" tab, until it is implemented... + self.window.get_widget("details-tabs").get_nth_page(1).hide() + self.window.get_widget("details-tabs").get_nth_page(2).hide() self.conn.connect("net-added", self.repopulate_networks)