[gnome-control-center] mouse: initialize click state
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-control-center] mouse: initialize click state
- Date: Fri, 15 Feb 2013 14:07:46 +0000 (UTC)
commit 67f83cdbe0d728d406f0385ebed2b2fbae66da68
Author: Ondrej Holy <oholy redhat com>
Date:   Thu Feb 14 15:35:56 2013 +0100
    mouse: initialize click state
    
    Fix bad state and critical error caused by reopening mouse test panel in clicked state.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693803
 panels/mouse/gnome-mouse-test.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/mouse/gnome-mouse-test.c b/panels/mouse/gnome-mouse-test.c
index c5f4d65..2e706c7 100644
--- a/panels/mouse/gnome-mouse-test.c
+++ b/panels/mouse/gnome-mouse-test.c
@@ -340,6 +340,9 @@ gnome_mouse_test_init (GtkBuilder *dialog)
 {
        mouse_settings = g_settings_new ("org.gnome.settings-daemon.peripherals.mouse");
 
+       double_click_state = DOUBLE_CLICK_TEST_OFF;
+       button_state = 0;
+
        setup_dialog (dialog);
 
        return WID ("mouse_test_window");
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]