Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
4ff6073f
by Daniel Brötzmann at 2019-08-16T18:46:00Z
-
623177a8
by Daniel Brötzmann at 2019-08-16T18:46:15Z
2 changed files:
Changes:
| ... | ... | @@ -432,6 +432,7 @@ |
| 432 | 432 |
<property name="can_focus">True</property>
|
| 433 | 433 |
<property name="border_width">1</property>
|
| 434 | 434 |
<property name="headers_visible">False</property>
|
| 435 |
+ <property name="search_column">1</property>
|
|
| 435 | 436 |
<child internal-child="selection">
|
| 436 | 437 |
<object class="GtkTreeSelection" id="treeview-selection1"/>
|
| 437 | 438 |
</child>
|
| ... | ... | @@ -257,6 +257,8 @@ class GroupchatControl(ChatControlBase): |
| 257 | 257 |
|
| 258 | 258 |
self.setup_seclabel()
|
| 259 | 259 |
|
| 260 |
+ self.list_treeview.set_search_equal_func(self._search_func)
|
|
| 261 |
+ |
|
| 260 | 262 |
# Send file
|
| 261 | 263 |
self.sendfile_button = self.xml.get_object('sendfile_button')
|
| 262 | 264 |
self.sendfile_button.set_action_name('win.send-file-' + \
|
| ... | ... | @@ -609,6 +611,10 @@ class GroupchatControl(ChatControlBase): |
| 609 | 611 |
desc = app.css_config.get_font('.gajim-group-row')
|
| 610 | 612 |
renderer.set_property('font-desc', desc)
|
| 611 | 613 |
|
| 614 |
+ @staticmethod
|
|
| 615 |
+ def _search_func(model, _column, search_text, iter_):
|
|
| 616 |
+ return search_text.lower() not in model[iter_][1].lower()
|
|
| 617 |
+ |
|
| 612 | 618 |
@event_filter(['account', 'room_jid'])
|
| 613 | 619 |
def _on_disco_update(self, _event):
|
| 614 | 620 |
if self.parent_win is None:
|