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 564998 - Visual bell settings went away
Visual bell settings went away
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] Assistive Technology Preferences
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 570039 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-18 14:45 UTC by Bastien Nocera
Modified: 2009-02-15 19:04 UTC
See Also:
GNOME target: 2.26.x
GNOME version: ---


Attachments
patch (104.61 KB, patch)
2009-02-09 04:34 UTC, Matthias Clasen
needs-work Details | Review
and here is how it looks (46.00 KB, image/png)
2009-02-09 04:36 UTC, Matthias Clasen
  Details
new patch (10.87 KB, patch)
2009-02-10 18:48 UTC, Matthias Clasen
committed Details | Review

Description Bastien Nocera 2008-12-18 14:45:39 UTC
And didn't reappear anywhere else. They need to be re-added.
Comment 1 William Jon McCann 2008-12-18 16:28:15 UTC
Should go into a new Universal Access capplet.
Comment 2 Matthias Clasen 2009-02-04 16:33:25 UTC
For 2.26, we should just add a checkbox to the "Keyboard Accessibility Audio Feedback" dialog, I think. 

Loosing this is a bit of an ugly regression, so we should get this done, even if it is late already.
Comment 3 André Klapper 2009-02-05 18:40:31 UTC
anybody volunteering to work on this?
Comment 4 Matthias Clasen 2009-02-09 04:34:13 UTC
Created attachment 128267 [details] [review]
patch

Here is a patch
Comment 5 Matthias Clasen 2009-02-09 04:36:35 UTC
Created attachment 128268 [details]
and here is how it looks
Comment 6 Matthias Clasen 2009-02-09 20:03:10 UTC
Jon proposes that "System Bell" may be too technical. 
Maybe "Alert sound" would be less technical (and picks up the same name we use in the sound capplet. 
"Visual cues for sounds" is what the a11y guys came up with.
Comment 7 Jens Granseuer 2009-02-10 17:54:47 UTC
Thanks, Matthias. A few comments:

+visual_bell_enable_toggled_cb (GtkWidget *w, GladeXML *dialog)
+{
+	gboolean active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (w));
+
+	if (notifications_dialog) {
+		gtk_widget_set_sensitive (NWID ("visual_bell_titlebar"), active);
+		gtk_widget_set_sensitive (NWID ("visual_bell_fullscreen"), active);
+	}
+}

Looks like we don't need "active" when notifications_dialog isn't there.

+static GConfEnumStringPair bell_flash_enums[] = {
+        { 0, "frame_flash" },
+        { 1, "fullscreen" },
+        { -1, NULL }
+};

const? Or does that conflict with the gconf function signatures?

More generally, the patch has a few identation issues. Also, minimizing the glade churn would be nice (stuff like that has bitten us before), and there should be standard functions for converting to/from enums in GConfPropertyEditor already so we shouldn't have to duplicate them. I have to admit I haven't checked if they fit here, though.

I agree with Jon regarding "System Bell". "Visual cues for sounds" sounds good to me if that's what the a11y guys prefer.
Comment 8 Matthias Clasen 2009-02-10 18:48:31 UTC
Created attachment 128400 [details] [review]
new patch

I hope this addresses the issues.

Indeed, the const is missing from the gconf signature, and I can't see any suitable conversion functions in the gconf-peditor header.
Comment 9 Jens Granseuer 2009-02-10 18:55:38 UTC
(In reply to comment #8)
> I can't see any suitable conversion functions in the gconf-peditor header.

..._new_select_radio_with_enum
Comment 10 Matthias Clasen 2009-02-10 19:31:00 UTC
There is no enum here, just two string values
Comment 11 Matthias Clasen 2009-02-11 16:59:29 UTC
Ok to commit this now ?
Comment 12 Jens Granseuer 2009-02-11 17:31:42 UTC
If you and Andre on one bug imply an automatic freeze break approval... ;-)
Comment 13 Matthias Clasen 2009-02-11 18:10:07 UTC
I've sent mail
Comment 14 Bastien Nocera 2009-02-12 10:26:36 UTC
*** Bug 570039 has been marked as a duplicate of this bug. ***