GNOME Bugzilla – Bug 693803
Click state initialization in mouse test area
Last modified: 2013-02-22 14:23:54 UTC
Created attachment 236071 [details] [review] initialize click state Mouse test area is in a bad state and causes critical error after reopening when it has been closed in clicked state.
Review of attachment 236071 [details] [review]: ::: panels/mouse/gnome-mouse-test.c @@ +335,3 @@ gtk_widget_override_background_color (WID ("button_drawing_area"), GTK_STATE_FLAG_NORMAL, &color); + + double_click_state = DOUBLE_CLICK_TEST_OFF; What about button_state? I would personally set it in gnome_mouse_test_init() and reset it in _dispose(). Or better, start making all this into a proper widget with private variables in a struct, instead of using semi-global variables.
Created attachment 236244 [details] [review] initialize click state Move initialization into gnome_mouse_test_init and initialize button_state also.
(In reply to comment #1) > Review of attachment 236071 [details] [review]: > > I would personally set it in gnome_mouse_test_init() and reset it in > _dispose(). Or better, start making all this into a proper widget with private > variables in a struct, instead of using semi-global variables. It'll be nice to fix the bug firstly, I can make all panel as proper widget later.
Review of attachment 236244 [details] [review]: Looks good.