After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779940 - Prepare room list code for filtering
Prepare room list code for filtering
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2017-03-12 14:40 UTC by Florian Müllner
Modified: 2017-03-14 01:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
joinDialog: Remove a pointless box from the hierarchy (4.76 KB, patch)
2017-03-12 14:40 UTC, Florian Müllner
committed Details | Review
serverRoomList: Use a template (6.91 KB, patch)
2017-03-12 14:40 UTC, Florian Müllner
committed Details | Review
serverRoomList: Include search entry and spinner (15.29 KB, patch)
2017-03-12 14:41 UTC, Florian Müllner
committed Details | Review
serverRoomList: Remove :loading property (3.17 KB, patch)
2017-03-12 14:41 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2017-03-12 14:40:45 UTC
It would be possible to add filtering based on the current code, but it's a lot cleaner to move stuff around a bit first. This will also make reusing the room list for initial-setup a lot more painless ...
Comment 1 Florian Müllner 2017-03-12 14:40:51 UTC
Created attachment 347751 [details] [review]
joinDialog: Remove a pointless box from the hierarchy

It was added by commit 4aec23a, but never served any purpose.
Comment 2 Florian Müllner 2017-03-12 14:40:56 UTC
Created attachment 347752 [details] [review]
serverRoomList: Use a template

We will soon move some bits from the joinDialog hierarchy into the
serverRoomList, so it's a good time to make it use a template - though
moving the tedious TreeView setup out of the code is already quite nice
by itself ...
Comment 3 Florian Müllner 2017-03-12 14:41:04 UTC
Created attachment 347753 [details] [review]
serverRoomList: Include search entry and spinner

Those widgets are currently added by the join dialog, however it
makes more sense for the serverRoomList to handle them itself:

 - we will soon hook up the entry to filter the list of rooms
   as intended by the design; this will tie entry and list at
   least as strong together as spinner and list already are,
   so keeping them in the same composite widget is much cleaner
   than passing state back and forth via properties, signals and
   functions

 - in the future, we want to reuse the room list during
   initial setup; having to duplicate all the code for
   loading indication, filtering and entering custom rooms
   would seriously suck
Comment 4 Florian Müllner 2017-03-12 14:41:09 UTC
Created attachment 347754 [details] [review]
serverRoomList: Remove :loading property

Now that the spinner is an internal child, we can simply update it
as necessary instead of routing through a GObject property.
Comment 5 Florian Müllner 2017-03-14 01:06:16 UTC
Attachment 347751 [details] pushed as 9c804cb - joinDialog: Remove a pointless box from the hierarchy
Attachment 347752 [details] pushed as 2934dc3 - serverRoomList: Use a template
Attachment 347753 [details] pushed as 9041f44 - serverRoomList: Include search entry and spinner
Attachment 347754 [details] pushed as 09f6137 - serverRoomList: Remove :loading property