Philipp Hörist pushed to branch layout at gajim / gajim


Commits:
75675f03 by Philipp Hörist at 2025-06-14T12:08:29+02:00
cfix: Tests: Remove obsolete widgets

- - - - -


1 changed file:

- test/gtk/ui_test_activity_feed.py


Changes:

=====================================
test/gtk/ui_test_activity_feed.py
=====================================
@@ -33,7 +33,6 @@
 from gajim.gtk.avatar import AvatarStorage
 from gajim.gtk.avatar import generate_default_avatar
 from gajim.gtk.chat_page import ChatPage
-from gajim.gtk.chat_page_header import ChatPageHeader
 from gajim.gtk.util.misc import convert_surface_to_texture
 from gajim.gtk.widgets import GajimAppWindow
 
@@ -64,42 +63,18 @@ def __init__(self) -> None:
 
         chat_page = ChatPage()
 
-        chat_page_header = ChatPageHeader()
-        chat_page_header.set_mode("activity")
-
-        activity_list_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
-        activity_list_box.append(chat_page_header)
-
-        activity_list = ActivityListView()
-        activity_list.set_search_entry(chat_page_header.get_search_entry())
-        activity_list.connect("activate", self._on_activity_row_activate)
-        activity_list.connect("unselected", self._on_activity_item_unselected)
-        activity_list_scrolled = Gtk.ScrolledWindow(
-            child=activity_list, width_request=300, vexpand=True
-        )
-        activity_list_box.append(activity_list_scrolled)
+        # activity_list.connect("activate", self._on_activity_row_activate)
+        # activity_list.connect("unselected", 
self._on_activity_item_unselected)
 
         # Replace ChatPage's internal activity list with test object
         # to track unread count in sidebar
-        chat_page._activity_list = activity_list  # type: ignore
+        # chat_page._activity_list = activity_list
 
         self._activity_page = ActivityPage()
 
-        paned = Gtk.Paned(
-            shrink_start_child=False,
-            resize_start_child=False,
-            position=250,
-            start_child=activity_list_box,
-            end_child=self._activity_page,
-        )
-
         self._activity_sidebar = ActivitySideBar(chat_page)
         self._activity_sidebar.set_valign(Gtk.Align.START)
 
-        main_box = Gtk.Box()
-        main_box.append(self._activity_sidebar)
-        main_box.append(paned)
-
         update_button = Gtk.Button.new_with_label("Updates")
         update_button.connect("clicked", self._on_update_button_clicked)
 
@@ -123,7 +98,7 @@ def __init__(self) -> None:
         button_box.append(invitation_button)
 
         overlay = Gtk.Overlay(hexpand=True)
-        overlay.set_child(main_box)
+        overlay.set_child(chat_page)
         overlay.add_overlay(button_box)
         self.set_child(overlay)
 



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/75675f035828c4f30554d6957a88e4a3470673a8
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