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 756702 - Some minor join-dialog improvements
Some minor join-dialog improvements
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-16 15:54 UTC by Florian Müllner
Modified: 2015-10-23 14:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
joinDialog: Don't close when saving new account (2.64 KB, patch)
2015-10-16 15:54 UTC, Florian Müllner
committed Details | Review
joinDialog: Select newly-created accounts (2.60 KB, patch)
2015-10-16 15:54 UTC, Florian Müllner
none Details | Review
joinDialog: Select newly-created accounts (2.60 KB, patch)
2015-10-16 17:04 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2015-10-16 15:54:08 UTC
See patches.

(I'm aware of the redesign work that's going on, but those are still worthwhile improvements in the meantime, in particular for gnome-3-18)
Comment 1 Florian Müllner 2015-10-16 15:54:12 UTC
Created attachment 313477 [details] [review]
joinDialog: Don't close when saving new account

The whole point of allowing users to create new connections directly
from the join dialog was to ease the task of joining a room; closing
the dialog on account creation and requiring the user to open the
dialog again clearly defeats that purpose.
Comment 2 Florian Müllner 2015-10-16 15:54:17 UTC
Created attachment 313478 [details] [review]
joinDialog: Select newly-created accounts

If the user creates a new connection from the join dialog, it's safe
to assume that she intends to join a room on that server.
Comment 3 Bastian Ilsø 2015-10-16 16:53:46 UTC
Review of attachment 313477 [details] [review]:

LGTM. :)

as for the second patch tho...
Comment 4 Bastian Ilsø 2015-10-16 16:55:27 UTC
Review of attachment 313478 [details] [review]:

::: src/connections.js
@@ +192,3 @@
                                                            GObject.ParamFlags.READABLE,
                                                            false)},
+    Signals: { 'account-created': { param_types: [Tp.Account.$gtype] }},

What does this line mean? Haven't seen this syntax before.

::: src/joinDialog.js
@@ +80,3 @@
+        this._details.connect('account-created', Lang.bind(this,
+            function(details.account) {
+                this._connectionCombo.set_active_id(account.display_name);

getting
(org.gnome.Polari:9367): Gjs-CRITICAL **: JS ERROR: SyntaxError: missing ) after formal parameters @ resource:///org/gnome/Polari/js/joinDialog.js:81

here
Comment 5 Florian Müllner 2015-10-16 17:04:30 UTC
Created attachment 313491 [details] [review]
joinDialog: Select newly-created accounts

(In reply to Bastian Ilsø from comment #4)
> Review of attachment 313478 [details] [review] [review]:
> GObject.ParamFlags.READABLE,
>                                                             false)},
> +    Signals: { 'account-created': { param_types: [Tp.Account.$gtype] }},
> 
> What does this line mean? Haven't seen this syntax before.

ConnectionDetails is a widget, ergo a GObject subclass - this defines a (GObject) signal that works with the regular g_signal_connect()/g_signal_emit() methods. Alternatively I could add the same hack as in Application, using connectJS and emitJS ...


> ::: src/joinDialog.js
> @@ +80,3 @@
> (org.gnome.Polari:9367): Gjs-CRITICAL **: JS ERROR: SyntaxError: missing )
> after formal parameters @ resource:///org/gnome/Polari/js/joinDialog.js:81
> 
> here

Grumble - that's called "hey-let's-do-this-small-cleanup-before-attaching" change :-(
Comment 6 Florian Müllner 2015-10-23 14:56:27 UTC
Attachment 313477 [details] pushed as 84ff117 - joinDialog: Don't close when saving new account
Attachment 313491 [details] pushed as 6f276e3 - joinDialog: Select newly-created accounts