remove scroll event callback

This commit is contained in:
piotr
2023-02-17 11:49:31 +01:00
parent 2bf7216387
commit 7b532c4faa

View File

@@ -21,8 +21,6 @@ common_settings = {}
scrolled_window = None
grid = Gtk.Grid()
window_lbl = None
scroll = 0.0
# max_num_items = 0
theme = Gtk.IconTheme.get_default()
@@ -42,12 +40,6 @@ def terminate(btn, pid):
list_processes(None)
def on_scroll(s_window, event):
adj = s_window.get_vadjustment()
global scroll
scroll = adj.get_value()
def list_processes(widget):
tree = Connection().get_tree()
processes = {}
@@ -267,7 +259,6 @@ def main():
scrolled_window = Gtk.ScrolledWindow.new(None, None)
scrolled_window.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scrolled_window.set_propagate_natural_height(True)
# scrolled_window.connect("scroll-event", on_scroll)
box.pack_start(scrolled_window, True, True, 0)
dist = Gtk.Box.new(Gtk.Orientation.VERTICAL, 0)