[gnome-control-center] Wire up the "Sound Settings" button
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Wire up the "Sound Settings" button
- Date: Fri, 21 Jan 2011 21:04:34 +0000 (UTC)
commit 9234d066637e98331848668c0c4738cc56499676
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 21 16:04:23 2011 -0500
Wire up the "Sound Settings" button
panels/universal-access/cc-ua-panel.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c
index 66efbf0..6120732 100644
--- a/panels/universal-access/cc-ua-panel.c
+++ b/panels/universal-access/cc-ua-panel.c
@@ -578,6 +578,16 @@ visual_bell_type_toggle_cb (GtkWidget *button,
}
static void
+hearing_sound_preferences_clicked (GtkButton *button,
+ CcUaPanel *panel)
+{
+ CcShell *shell;
+
+ shell = cc_panel_get_shell (CC_PANEL (panel));
+ cc_shell_set_active_panel_from_id (shell, "sound", NULL);
+}
+
+static void
cc_ua_panel_init_hearing (CcUaPanel *self)
{
CcUaPanelPrivate *priv = self->priv;
@@ -613,6 +623,9 @@ cc_ua_panel_init_hearing (CcUaPanel *self)
g_signal_connect (WID (priv->builder, "hearing_test_flash_button"),
"clicked", G_CALLBACK (gdk_beep), NULL);
+ g_signal_connect (WID (priv->builder, "hearing_sound_preferences_button"),
+ "clicked",
+ G_CALLBACK (hearing_sound_preferences_clicked), self);
}
/* typing/keyboard section */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]