mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Replace deprecated add_with_viewport()
This commit is contained in:
parent
ec8fe1ac5e
commit
1b242cf330
3 changed files with 3 additions and 3 deletions
|
|
@ -164,7 +164,7 @@ class ScanChooser(HIGVBox):
|
|||
self.exp_scan.add(self.scrolled)
|
||||
|
||||
# Packing text view into scrolled window
|
||||
self.scrolled.add_with_viewport(self.txt_scan_result)
|
||||
self.scrolled.add(self.txt_scan_result)
|
||||
|
||||
# Setting scrolled window
|
||||
self.scrolled.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
|
||||
|
|
|
|||
|
|
@ -956,7 +956,7 @@ class ScanResultNotebook(HIGNotebook):
|
|||
self.topology_page.add(self.topology)
|
||||
self.scans_list_page.add(self.scans_list)
|
||||
|
||||
self.host_details_page.add_with_viewport(self.host_details_vbox)
|
||||
self.host_details_page.add(self.host_details_vbox)
|
||||
self.host_details_vbox._pack_expand_fill(self.host_details)
|
||||
|
||||
def _scan_row_activated(self, treeview, path, view_column):
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ class ScanOpenPortsPage(Gtk.ScrolledWindow):
|
|||
|
||||
self.__create_widgets()
|
||||
|
||||
self.add_with_viewport(self.host)
|
||||
self.add(self.host)
|
||||
|
||||
def __create_widgets(self):
|
||||
self.host = HostOpenPorts()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue