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 630943 - Bigger default size for dialogs such as "Custom status"
Bigger default size for dialogs such as "Custom status"
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
2.30.x
Other Linux
: Normal minor
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2010-09-29 19:53 UTC by Jean-François Fortin Tam
Modified: 2011-06-29 09:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PresenceChooser: remove unused #define FLASH_TIMEOUT (847 bytes, patch)
2011-06-10 20:30 UTC, Will Thompson
accepted-commit_now Details | Review
PresetDialog test: quit cleanly (1.29 KB, patch)
2011-06-10 20:30 UTC, Will Thompson
accepted-commit_now Details | Review
PresetDialog: make the window taller (1.92 KB, patch)
2011-06-10 20:30 UTC, Will Thompson
accepted-commit_now Details | Review
PresetDialog: make Add button less huge. (947 bytes, patch)
2011-06-10 20:30 UTC, Will Thompson
accepted-commit_now Details | Review
PresetDialog: Don't allow resizing status preset dialog (970 bytes, patch)
2011-06-10 20:30 UTC, Will Thompson
accepted-commit_now Details | Review
PresetDialog: Allow >1 status to be removed at a time. (3.23 KB, patch)
2011-06-10 20:30 UTC, Will Thompson
accepted-commit_now Details | Review
PresetDialog: Select text cell of freshly-added status (2.61 KB, patch)
2011-06-10 20:30 UTC, Will Thompson
accepted-commit_now Details | Review
PresetDialog: Don't leak path when focusing freshly-created status (868 bytes, patch)
2011-06-10 20:31 UTC, Will Thompson
accepted-commit_now Details | Review
PresetDialog: GNOME 3-ify the remove button (6.10 KB, patch)
2011-06-24 11:09 UTC, Will Thompson
accepted-commit_now Details | Review
PresetDialog: make status icon in entry non-activatable (1.19 KB, patch)
2011-06-24 11:09 UTC, Will Thompson
accepted-commit_now Details | Review
PresetDialog: remove support for adding statuses entirely (13.62 KB, patch)
2011-06-24 11:09 UTC, Will Thompson
accepted-commit_now Details | Review
ChatroomsWindow: GNOME 3-ify the Remove button (6.47 KB, patch)
2011-06-24 14:14 UTC, Will Thompson
accepted-commit_now Details | Review
ChatroomsWindow: make the minimum size a bit bigger (1.26 KB, patch)
2011-06-24 14:14 UTC, Will Thompson
accepted-commit_now Details | Review

Description Jean-François Fortin Tam 2010-09-29 19:53:07 UTC
- Scrolling sucks.
- The dialog used to edit the custom statuses is about 430x240 pixels in size.
- Nobody has a resolution <1024x600 on the desktop.

Therefore: the default size should probably be bigger than that :)

Another dialog that might benefit from this is the favorite chatrooms editor.
Comment 1 Will Thompson 2011-06-10 20:30:11 UTC
I was working on fixing some of my rant on bug 640846 and made the dialog a bit bigger and better: <http://cgit.collabora.com/git/user/wjt/empathy.git/log/?h=status-dialog>

Before: http://people.collabora.com/~wjt/tmp/old-status-editor.png
After: http://people.collabora.com/~wjt/tmp/new-status-editor.png

The scroll-y area is now in the golden ratio. (Previously the dialog as a whole was in the golden ratio.)

I made it non-resizable, too: resizable sheets are kind of funky. Also I made it behave better and made the Add button less massive.
Comment 2 Will Thompson 2011-06-10 20:30:37 UTC
Created attachment 189672 [details] [review]
PresenceChooser: remove unused #define FLASH_TIMEOUT
Comment 3 Will Thompson 2011-06-10 20:30:40 UTC
Created attachment 189673 [details] [review]
PresetDialog test: quit cleanly

Previously one had to kill the process, but by just switching to
gtk_dialog_run() we get more functionality for less code. :D
Comment 4 Will Thompson 2011-06-10 20:30:43 UTC
Created attachment 189674 [details] [review]
PresetDialog: make the window taller

The element we really care about the size of is the list of statuses
past. So I moved the horizontal size request to that—the window has 6px
of padding or so, so this makes it pretty much exactly the same
width—and made the height request be in the golden ratio to it.

I'm probably unusual in having enough statuses to fill my laptop screen
vertically, but, subjectively, this makes the dialog look less stubby
even now I've removed them all to test.
Comment 5 Will Thompson 2011-06-10 20:30:47 UTC
Created attachment 189675 [details] [review]
PresetDialog: make Add button less huge.

I tried and failed to make it the same size as the other two buttons, so
this will have to do.
Comment 6 Will Thompson 2011-06-10 20:30:50 UTC
Created attachment 189676 [details] [review]
PresetDialog: Don't allow resizing status preset dialog

It's big enough.
Comment 7 Will Thompson 2011-06-10 20:30:53 UTC
Created attachment 189677 [details] [review]
PresetDialog: Allow >1 status to be removed at a time.

This is pretty niche but we may as well. I want it sometimes. There's no
reason to disallow it, and it's not like it adds any significant
complexity.
Comment 8 Will Thompson 2011-06-10 20:30:56 UTC
Created attachment 189678 [details] [review]
PresetDialog: Select text cell of freshly-added status

This means you can just mash Enter to edit your mistake. It's more
useful than leaving the text entry focused. It also helps hide a bug
where the entry doesn't get cleared if you just start typing another
message. So previously, typing:

  Hello<Enter>Miaow<Enter>

would give you two statuses, "Hello" and "MiaowEnter Custom Message".

It didn't seem worth fixing this much more since Gtk+ 3.2 will probably
grow native support for placeholder text:
<https://bugzilla.gnome.org/show_bug.cgi?id=440963>
Comment 9 Will Thompson 2011-06-10 20:31:00 UTC
Created attachment 189679 [details] [review]
PresetDialog: Don't leak path when focusing freshly-created status

(This was not introduced by my changes.)
Comment 10 Guillaume Desmottes 2011-06-20 09:42:39 UTC
Review of attachment 189672 [details] [review]:

++
Comment 11 Guillaume Desmottes 2011-06-20 09:43:01 UTC
Review of attachment 189673 [details] [review]:

++
Comment 12 Guillaume Desmottes 2011-06-20 09:43:34 UTC
Review of attachment 189674 [details] [review]:

++
Comment 13 Guillaume Desmottes 2011-06-20 09:43:56 UTC
Review of attachment 189675 [details] [review]:

++
Comment 14 Guillaume Desmottes 2011-06-20 09:44:15 UTC
Review of attachment 189676 [details] [review]:

++
Comment 15 Guillaume Desmottes 2011-06-20 09:46:05 UTC
Review of attachment 189677 [details] [review]:

++
Comment 16 Guillaume Desmottes 2011-06-20 09:47:40 UTC
Review of attachment 189678 [details] [review]:

++
Comment 17 Guillaume Desmottes 2011-06-20 09:48:13 UTC
Review of attachment 189679 [details] [review]:

++


You can push it to gnome-3.0 as well if you're keen.
Comment 18 Will Thompson 2011-06-24 08:56:33 UTC
(In reply to comment #17)
> You can push it to gnome-3.0 as well if you're keen.

I merged an equivalent patch to gnome-3-0.
Comment 19 Will Thompson 2011-06-24 11:09:24 UTC
Created attachment 190571 [details] [review]
PresetDialog: GNOME 3-ify the remove button

Yum yum joined-toolbar!
Comment 20 Will Thompson 2011-06-24 11:09:27 UTC
Created attachment 190572 [details] [review]
PresetDialog: make status icon in entry non-activatable

It's not meaningfully activatable; this has the effect of making it not
glow on mouse-over, and preventing the cursor from changing from a caret
back to a pointer.
Comment 21 Will Thompson 2011-06-24 11:09:30 UTC
Created attachment 190573 [details] [review]
PresetDialog: remove support for adding statuses entirely

We already have a way to do this, namely on the contact list itself. So
this dialog now becomes just a way to edit/remove the existing statuses.

The margins on the VBox are chosen to make its right-hand edge line up
exactly with the right-hand edge of the Close button in the dialog.
Comment 22 Will Thompson 2011-06-24 11:11:07 UTC
So here are three more patches. The first two are uncontroversial, and make the dialog look like this: http://willthompson.co.uk/misc/saved-statuses-during.png

For reference, it used to look like this: http://willthompson.co.uk/misc/saved-statuses-before.png

The last one is a little more controversial and makes it look like this: http://willthompson.co.uk/misc/saved-statuses-after.png

If we wanted to support adding and/or activating statuses from this dialog, it could look like this: http://willthompson.co.uk/misc/saved-statuses-hypothetical.png
Comment 23 Jonny Lamb 2011-06-24 12:55:24 UTC
I don't like the last one, it has too many weird icons which mean things which aren't clear. Perhaps this is just what a toolbar is though? *shrug*
Comment 24 Will Thompson 2011-06-24 13:13:37 UTC
(In reply to comment #23)
> I don't like the last one, it has too many weird icons which mean things which
> aren't clear. Perhaps this is just what a toolbar is though? *shrug*

I don't really like it either; it was just a possible alternative to adding an “Activate selected status” button at the bottom.
Comment 25 Guillaume Desmottes 2011-06-24 13:14:46 UTC
Review of attachment 190571 [details] [review]:

++
Comment 26 Guillaume Desmottes 2011-06-24 13:15:08 UTC
Review of attachment 190572 [details] [review]:

++
Comment 27 Guillaume Desmottes 2011-06-24 13:15:57 UTC
Review of attachment 190573 [details] [review]:

Let's keep it simple, ++
Comment 28 Will Thompson 2011-06-24 14:13:09 UTC
Merged: http://git.gnome.org/browse/empathy/commit/?id=3e22c794dd4568a69c08ce80cc12e03eb27f836c

And here come a couple more patches to make the Manage Favourite Rooms dialog a little bigger by default (making the scrolled window exactly the same size, in fact) and conjoin the toolbar while we're there: http://willthompson.co.uk/misc/manage-favourite-rooms.png
Comment 29 Will Thompson 2011-06-24 14:14:10 UTC
Created attachment 190588 [details] [review]
ChatroomsWindow: GNOME 3-ify the Remove button
Comment 30 Will Thompson 2011-06-24 14:14:13 UTC
Created attachment 190589 [details] [review]
ChatroomsWindow: make the minimum size a bit bigger

This patch makes the scrolled window's minimum size request the same as
the new size for the status editor's scrolled window.
Comment 31 Guillaume Desmottes 2011-06-27 07:22:35 UTC
Review of attachment 190588 [details] [review]:

++
Comment 32 Guillaume Desmottes 2011-06-27 07:22:47 UTC
Review of attachment 190589 [details] [review]:

++
Comment 33 Will Thompson 2011-06-29 09:29:35 UTC
I merged them all! <http://git.gnome.org/browse/empathy/log/?id=9d13e5abfc9802832cc0e81cfa96663ffdd4744d>

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.