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 326679 - The New Sound Capplet UI
The New Sound Capplet UI
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Sound
git master
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
aklapper[mnemonics]
Depends on:
Blocks:
 
 
Reported: 2006-01-12 02:22 UTC by Dennis Cranston
Modified: 2009-01-30 12:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (4.89 KB, patch)
2006-01-12 02:23 UTC, Dennis Cranston
committed Details | Review
Screenshot of changes (63.06 KB, image/png)
2006-01-12 02:24 UTC, Dennis Cranston
  Details
Proposed patch (2.01 KB, patch)
2006-01-13 06:32 UTC, Dennis Cranston
none Details | Review
The correct proposed patch (837 bytes, patch)
2006-01-13 06:40 UTC, Dennis Cranston
committed Details | Review
mockup_sound_groups.png (43.44 KB, image/png)
2006-02-19 22:44 UTC, Luca Cavalli
  Details

Description Dennis Cranston 2006-01-12 02:22:23 UTC
I have a few comments pertaining to the new sound capplet UI.
  
1.  Alignment of the labels - the HIG prefers left aligned labels.
2.  Category contents is not indented - the HIG states that the contents be indent by 12 pixels.
3.  Spacing between the rows and columns under System Sounds - the HIG recommends 6 pixels between rows.  Combobox labels should be 12 pixels from their combobox widget.  Others typically use 6 pixels.
4.  Mnemonic conflicts - the dialog has conflicting mnemonics for S, C, & L.
5.  The dialog will not fit on 800x600 display.
Comment 1 Dennis Cranston 2006-01-12 02:23:59 UTC
Created attachment 57187 [details] [review]
Proposed patch

This patch addresses issues 1 thru 3 from above.

2006-01-11  Dennis Cranston  <dennis_cranston@yahoo.com>

	* capplets/sound/sound-properties-capplet.c: (create_dialog):
	Do not hardcode the height of the dialog.
	* capplets/sound/sound-properties.glade:  Add an alignment to
	set 18 pixels of space before starting the "System Sounds" 
	category.
	* libsounds/sound-view.c: (play_preview_cb), (add_sound_item),
	(sound_view_init):  Indent the contents of the "System Sounds"
	category.  Use left alignment for combobox labels.  Fix the
	row and column spacing.
Comment 2 Dennis Cranston 2006-01-12 02:24:25 UTC
Created attachment 57188 [details]
Screenshot of changes
Comment 3 Rodrigo Moya 2006-01-12 12:30:00 UTC
Ok, patch will be committed to HEAD soon, thanks.

That leaves us 2 issues,

4.  Mnemonic conflicts - the dialog has conflicting mnemonics for S, C, & L.
5.  The dialog will not fit on 800x600 display.
Comment 4 Dennis Cranston 2006-01-13 06:32:03 UTC
Created attachment 57265 [details] [review]
Proposed patch

I previously overlooked the use of the volume icon for previewing the sound files.  The media-play icon is more appropriate here.
Comment 5 Dennis Cranston 2006-01-13 06:40:06 UTC
Created attachment 57266 [details] [review]
The correct proposed patch
Comment 6 Rodrigo Moya 2006-01-18 15:19:57 UTC
I don't think we want the label in those buttons, so have changed your patch to:

Index: sound-view.c
===================================================================
RCS file: /cvs/gnome/libsounds/libsounds/sound-view.c,v
retrieving revision 1.29
diff -u -p -r1.29 sound-view.c
--- sound-view.c        12 Jan 2006 12:55:38 -0000      1.29
+++ sound-view.c        18 Jan 2006 15:16:09 -0000
@@ -249,6 +249,7 @@ add_sound_item (GtkTable *table, SoundVi
 {
        GtkWidget *label;
        GtkWidget *combo;
+       GtkWidget *play_button;
        gint index;
        ComboBoxEntryInfo *info;

@@ -305,8 +306,9 @@ add_sound_item (GtkTable *table, SoundVi
                1, 2, table->nrows - 1, table->nrows,
                GTK_EXPAND | GTK_FILL, GTK_SHRINK, 0, 3);

-       GtkWidget *play_button = gtk_button_new();
-       gtk_container_add (GTK_CONTAINER (play_button), gtk_image_new_from_stock (GNOME_STOCK_VOLUME, GTK_ICON_SIZE_SMALL_TOOLBAR));
+       play_button = gtk_button_new ();
+       gtk_container_add (GTK_CONTAINER (play_button),
+                          gtk_image_new_from_stock (GTK_STOCK_MEDIA_PLAY,  GTK_ICON_SIZE_SMALL_TOOLBAR));
        g_signal_connect (G_OBJECT(play_button), "clicked", (GCallback) play_preview_cb, info);

        gtk_table_attach (GTK_TABLE (table), play_button,
Comment 7 Daniel Holbach 2006-01-20 14:51:37 UTC
This was raised in https://launchpad.net/distros/ubuntu/+source/gnome-applets/+bug/29045 as well.
Comment 8 Crispin Flowerday (not receiving bugmail) 2006-02-09 23:06:14 UTC
I raised bug 330593 for the mnemonic conflicts
Comment 9 Luca Cavalli 2006-02-19 22:44:38 UTC
Created attachment 59741 [details]
mockup_sound_groups.png

wrt the dialog size, what about grouping sounds in category, organizing them with expanders (maybe inside a vertically scrollable window)? I understand this might not be the best solution, but it should reduce the dialog size, making it usable also with low resolutions. Of course dialog boxes should all be the same size, not like in my mockup :)
Comment 10 Bastien Nocera 2009-01-30 12:04:16 UTC
We already have a better UI in the control-center for GNOME 2.24 and gnome-media for 2.25.