mirror of
https://github.com/nmap/nmap.git
synced 2026-11-20 08:40:36 +08:00
Replace deprecated add_with_viewport()
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user