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


Commits:
37b6cd52 by wurstsalat at 2025-01-31T22:53:54+01:00
cfix: SearchView: Clear view correctly and show placeholders

- - - - -
9dea7284 by wurstsalat at 2025-01-31T23:00:27+01:00
cfix: SearchView: Set initial calendar button sensitivity

- - - - -


2 changed files:

- gajim/data/gui/search_view.ui
- gajim/gtk/search_view.py


Changes:

=====================================
gajim/data/gui/search_view.ui
=====================================
@@ -101,6 +101,7 @@
         </child>
         <child type="end">
           <object class="GtkMenuButton" id="calendar_button">
+            <property name="sensitive">0</property>
             <property name="focusable">1</property>
             <property name="focus-on-click">0</property>
             <property name="receives-default">1</property>


=====================================
gajim/gtk/search_view.py
=====================================
@@ -36,7 +36,6 @@
 
 from gajim.gtk.builder import get_builder
 from gajim.gtk.conversation.message_widget import MessageWidget
-from gajim.gtk.util import clear_listbox
 from gajim.gtk.util import convert_py_to_glib_datetime
 from gajim.gtk.util import SignalManager
 
@@ -145,7 +144,9 @@ def _clear_results(self) -> None:
         # Unset the header_func to reduce load when clearing
         self._ui.results_listbox.set_header_func(None)
 
-        clear_listbox(self._ui.results_listbox)
+        self._ui.results_listbox.remove_all()
+        # Set placeholder again, otherwise it won't be shown
+        self._ui.results_listbox.set_placeholder(self._ui.placeholder)
 
         self._ui.results_listbox.set_header_func(self._header_func)
         self._ui.results_scrolled.get_vadjustment().set_value(0)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/51a68750bdbf293023a13428a25f1e7b270d4223...9dea728472c62fbd2c419ff289f3e559929846db

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/51a68750bdbf293023a13428a25f1e7b270d4223...9dea728472c62fbd2c419ff289f3e559929846db
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