mirror of
https://github.com/gryf/wicd.git
synced 2026-01-01 19:42:30 +01:00
Added a name label
This commit is contained in:
@@ -508,6 +508,9 @@ class NetworkEntry(gtk.HBox):
|
|||||||
self.disconnect_button = gtk.Button(stock=gtk.STOCK_DISCONNECT)
|
self.disconnect_button = gtk.Button(stock=gtk.STOCK_DISCONNECT)
|
||||||
self.connect_hbox.pack_start(self.disconnect_button, False, False)
|
self.connect_hbox.pack_start(self.disconnect_button, False, False)
|
||||||
|
|
||||||
|
# Create a label to hold the name of the entry
|
||||||
|
self.name_label = gtk.Label()
|
||||||
|
|
||||||
# Set up the VBox that goes in the gtk.Expander
|
# Set up the VBox that goes in the gtk.Expander
|
||||||
self.expander_vbox = gtk.VBox(False, 1)
|
self.expander_vbox = gtk.VBox(False, 1)
|
||||||
self.expander_vbox.show()
|
self.expander_vbox.show()
|
||||||
@@ -542,6 +545,7 @@ class NetworkEntry(gtk.HBox):
|
|||||||
aligner = gtk.Alignment(xscale=1.0)
|
aligner = gtk.Alignment(xscale=1.0)
|
||||||
aligner.add(self.vbox_top)
|
aligner.add(self.vbox_top)
|
||||||
aligner.set_padding(0, 0, 15, 0)
|
aligner.set_padding(0, 0, 15, 0)
|
||||||
|
self.expander_vbox.pack_start(self.name_label)
|
||||||
self.expander_vbox.pack_start(aligner)
|
self.expander_vbox.pack_start(aligner)
|
||||||
self.expander_vbox.pack_start(self.connect_hbox, False, False)
|
self.expander_vbox.pack_start(self.connect_hbox, False, False)
|
||||||
|
|
||||||
@@ -564,6 +568,8 @@ class WiredNetworkEntry(NetworkEntry):
|
|||||||
self.image.show()
|
self.image.show()
|
||||||
self.connect_button.show()
|
self.connect_button.show()
|
||||||
|
|
||||||
|
self.name_label.set_label(language['wired_network'])
|
||||||
|
|
||||||
#self.reset_static_checkboxes()
|
#self.reset_static_checkboxes()
|
||||||
self.is_full_gui = True
|
self.is_full_gui = True
|
||||||
|
|
||||||
@@ -786,10 +792,10 @@ class WirelessNetworkEntry(NetworkEntry):
|
|||||||
wireless.GetWirelessProperty(networkID,
|
wireless.GetWirelessProperty(networkID,
|
||||||
'encryption_method'))
|
'encryption_method'))
|
||||||
|
|
||||||
# self.expander.set_label(self._escape(self.essid) + " " +
|
self.name_label.set_markup(self._escape(self.essid) + " " +
|
||||||
# self.lbl_strength.get_label() + " " +
|
self.lbl_strength.get_label() + " " +
|
||||||
# self.lbl_encryption.get_label() + " " +
|
self.lbl_encryption.get_label() + " " +
|
||||||
# self.lbl_mac.get_label())
|
self.lbl_mac.get_label())
|
||||||
|
|
||||||
# Pack the network status HBox.
|
# Pack the network status HBox.
|
||||||
self.hbox_status.pack_start(self.lbl_strength, True, True)
|
self.hbox_status.pack_start(self.lbl_strength, True, True)
|
||||||
|
|||||||
Reference in New Issue
Block a user