[gnome-control-center] mouse: Remove dead a11y code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] mouse: Remove dead a11y code
- Date: Tue, 16 Nov 2010 11:06:47 +0000 (UTC)
commit ab72b37318ff7afab167833b56105094981be316
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 16 11:06:02 2010 +0000
mouse: Remove dead a11y code
That code is broken, and wasn't used anyway, as all of this
should be available in the UA panel.
panels/mouse/Makefile.am | 4 +-
panels/mouse/gnome-mouse-accessibility.c | 239 ------------------------------
panels/mouse/gnome-mouse-accessibility.h | 29 ----
panels/mouse/gnome-mouse-properties.c | 27 ----
4 files changed, 1 insertions(+), 298 deletions(-)
---
diff --git a/panels/mouse/Makefile.am b/panels/mouse/Makefile.am
index 7c505b7..bb24b4e 100644
--- a/panels/mouse/Makefile.am
+++ b/panels/mouse/Makefile.am
@@ -20,9 +20,7 @@ libmouse_properties_la_SOURCES = \
cc-mouse-panel.c \
cc-mouse-panel.h \
gnome-mouse-properties.c \
- gnome-mouse-properties.h \
- gnome-mouse-accessibility.c \
- gnome-mouse-accessibility.h
+ gnome-mouse-properties.h
libmouse_properties_la_LIBADD = $(PANEL_LIBS) $(GSD_DBUS_LIBS) $(GNOMECC_CAPPLETS_LIBS)
libmouse_properties_la_LDFLAGS = $(PANEL_LDFLAGS)
diff --git a/panels/mouse/gnome-mouse-properties.c b/panels/mouse/gnome-mouse-properties.c
index 14a1f6a..98be9a0 100644
--- a/panels/mouse/gnome-mouse-properties.c
+++ b/panels/mouse/gnome-mouse-properties.c
@@ -30,7 +30,6 @@
#include <gnome-settings-daemon/gsd-enums.h>
#include <math.h>
-#include "gnome-mouse-accessibility.h"
#include "gnome-mouse-properties.h"
#include <sys/types.h>
@@ -56,31 +55,6 @@ static gint double_click_state = DOUBLE_CLICK_TEST_OFF;
static GSettings *mouse_settings = NULL;
static GSettings *touchpad_settings = NULL;
-static void
-get_default_mouse_info (int *default_numerator, int *default_denominator, int *default_threshold)
-{
- int numerator, denominator;
- int threshold;
- int tmp_num, tmp_den, tmp_threshold;
-
- /* Query X for the default value */
- XGetPointerControl (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), &numerator, &denominator,
- &threshold);
- XChangePointerControl (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), True, True, -1, -1, -1);
- XGetPointerControl (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), &tmp_num, &tmp_den, &tmp_threshold);
- XChangePointerControl (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), True, True, numerator, denominator, threshold);
-
- if (default_numerator)
- *default_numerator = tmp_num;
-
- if (default_denominator)
- *default_denominator = tmp_den;
-
- if (default_threshold)
- *default_threshold = tmp_threshold;
-
-}
-
/* Double Click handling */
struct test_data_t
@@ -443,7 +417,6 @@ gnome_mouse_properties_init (GtkBuilder *dialog)
if (dialog) {
setup_dialog (dialog);
- setup_accessibility (dialog);
dialog_win = WID ("mouse_properties_dialog");
g_signal_connect (dialog_win, "response",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]