summaryrefslogtreecommitdiff
path: root/panels/universal-access
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2013-09-16 20:17:55 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-01 10:04:20 +0200
commit7a271439c9d30e504bf3003c1d54d5476869d4b8 (patch)
treeadd0b93954b4a3d81f90536d8fea637ece8f3c36 /panels/universal-access
parent209a5285612cbc3b4ffa42fbc7d1be5da0a6a05e (diff)
downloadgnome-control-center-7a271439c9d30e504bf3003c1d54d5476869d4b8.tar.gz
universal-access: Remove the mnemonic-activate handler
It's wrong because the label's parent isn't a GtkListBoxRow which causes a warning. In any case, we don't need it since GtkLabel already does the work of finding a suitable parent widget to activate on mnemonic-activate which ends up causing GtkListBox to fire its row-activated signal that we already handle. https://bugzilla.gnome.org/show_bug.cgi?id=708283
Diffstat (limited to 'panels/universal-access')
-rw-r--r--panels/universal-access/cc-ua-panel.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c
index db2d90196..b9bd7073c 100644
--- a/panels/universal-access/cc-ua-panel.c
+++ b/panels/universal-access/cc-ua-panel.c
@@ -405,15 +405,6 @@ activate_row (CcUaPanel *self, GtkListBoxRow *row)
}
static void
-mnemonic_activate (GtkLabel *label, gboolean cycling, CcUaPanel *self)
-{
- GtkWidget *row;
-
- row = gtk_widget_get_parent (GTK_WIDGET (label));
- activate_row (self, GTK_LIST_BOX_ROW (row));
-}
-
-static void
cc_ua_panel_init_seeing (CcUaPanel *self)
{
CcUaPanelPrivate *priv = self->priv;
@@ -446,9 +437,6 @@ cc_ua_panel_init_seeing (CcUaPanel *self)
priv->interface_settings,
NULL);
- g_signal_connect (WID ("heading_large_text"), "mnemonic-activate",
- G_CALLBACK (mnemonic_activate), self);
-
/* zoom */
g_settings_bind_with_mapping (priv->application_settings, "screen-magnifier-enabled",
@@ -458,8 +446,6 @@ cc_ua_panel_init_seeing (CcUaPanel *self)
NULL, NULL, NULL);
g_object_set_data (G_OBJECT (WID ("row_zoom")), "dialog-id", "zoom");
- g_signal_connect (WID ("heading_zoom"), "mnemonic-activate",
- G_CALLBACK (mnemonic_activate), self);
/* screen reader */
@@ -480,8 +466,6 @@ cc_ua_panel_init_seeing (CcUaPanel *self)
G_CALLBACK (gtk_widget_hide), dialog);
g_signal_connect (dialog, "delete-event",
G_CALLBACK (gtk_widget_hide_on_delete), NULL);
- g_signal_connect (WID ("heading_screen_reader"), "mnemonic-activate",
- G_CALLBACK (mnemonic_activate), self);
/* sound keys */
@@ -502,8 +486,6 @@ cc_ua_panel_init_seeing (CcUaPanel *self)
G_CALLBACK (gtk_widget_hide), dialog);
g_signal_connect (dialog, "delete-event",
G_CALLBACK (gtk_widget_hide_on_delete), NULL);
- g_signal_connect (WID ("heading_sound_keys"), "mnemonic-activate",
- G_CALLBACK (mnemonic_activate), self);
}
/* hearing/sound section */
@@ -593,8 +575,6 @@ cc_ua_panel_init_hearing (CcUaPanel *self)
g_signal_connect (WID ("visual_alerts_test_button"),
"clicked", G_CALLBACK (gdk_beep), NULL);
- g_signal_connect (WID ("heading_visual_alerts"), "mnemonic-activate",
- G_CALLBACK (mnemonic_activate), self);
}
/* typing/keyboard section */
@@ -720,8 +700,6 @@ cc_ua_panel_init_keyboard (CcUaPanel *self)
G_CALLBACK (gtk_widget_hide), dialog);
g_signal_connect (dialog, "delete-event",
G_CALLBACK (gtk_widget_hide_on_delete), NULL);
- g_signal_connect (WID ("heading_accessx"), "mnemonic-activate",
- G_CALLBACK (mnemonic_activate), self);
}
/* mouse/pointing & clicking section */
@@ -803,8 +781,6 @@ cc_ua_panel_init_mouse (CcUaPanel *self)
G_CALLBACK (gtk_widget_hide), dialog);
g_signal_connect (dialog, "delete-event",
G_CALLBACK (gtk_widget_hide_on_delete), NULL);
- g_signal_connect (WID ("heading_click_assist"), "mnemonic-activate",
- G_CALLBACK (mnemonic_activate), self);
}
static void