Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
df0f9e89 by wurstsalat at 2025-03-04T23:23:16+01:00
fix: Ad-hoc commands: Expand list of commands vertically

Fixes #12206

- - - - -


1 changed file:

- gajim/gtk/adhoc.py


Changes:

=====================================
gajim/gtk/adhoc.py
=====================================
@@ -212,12 +212,16 @@ def __init__(self) -> None:
         self.title = _("Command List")
 
         self._commands: dict[str, AdHocCommand] = {}
-        self._scrolled = Gtk.ScrolledWindow()
+        self._scrolled = Gtk.ScrolledWindow(
+            max_content_width=400,
+            max_content_height=400,
+            propagate_natural_height=True,
+            hscrollbar_policy=Gtk.PolicyType.NEVER,
+            vscrollbar_policy=Gtk.PolicyType.AUTOMATIC,
+            vexpand=True,
+        )
         self._scrolled.add_css_class("gajim-scrolled")
-        self._scrolled.set_max_content_height(400)
-        self._scrolled.set_max_content_width(400)
-        self._scrolled.set_propagate_natural_height(True)
-        self._scrolled.set_policy(Gtk.PolicyType.NEVER, 
Gtk.PolicyType.AUTOMATIC)
+
         self._treeview = Gtk.TreeView()
         self._treeview.add_css_class("gajim-treeview")
         self._store = Gtk.ListStore(str, str)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/df0f9e89137d712d9f582b7d320b96ae362de246

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/df0f9e89137d712d9f582b7d320b96ae362de246
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to