diff options
author | Roy Zhang <[email protected]> | 2015-08-29 10:35:18 +0800 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-29 12:01:19 +0200 |
commit | eaed47cb841072d1c2c977e570ab72d2b97f9e4b (patch) | |
tree | 5cb9f1c8aec3a906aed6caf98951ebd238775cf5 /capplets/mouse | |
parent | f840fc05ba1178838c1c163f1ed3908a927ba447 (diff) | |
download | mate-control-center-eaed47cb841072d1c2c977e570ab72d2b97f9e4b.tar.bz2 mate-control-center-eaed47cb841072d1c2c977e570ab72d2b97f9e4b.tar.xz |
mouse: Use GSourceFunc instead of GtkFunction
GtkFunction has been deprecated since version 2.24, and now we only
support GTK+ 2.0 version >= 2.24.
Diffstat (limited to 'capplets/mouse')
-rw-r--r-- | capplets/mouse/mate-mouse-properties.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c index 38e17530..94f2a0fb 100644 --- a/capplets/mouse/mate-mouse-properties.c +++ b/capplets/mouse/mate-mouse-properties.c @@ -48,10 +48,6 @@ #include <X11/Xcursor/Xcursor.h> #endif -#if GTK_CHECK_VERSION (3, 0, 0) -#define GtkFunction GSourceFunc -#endif - enum { DOUBLE_CLICK_TEST_OFF, @@ -151,14 +147,14 @@ event_box_button_press_event (GtkWidget *widget, double_click_state = DOUBLE_CLICK_TEST_MAYBE; data.image = image; data.timeout_id = &test_maybe_timeout_id; - test_maybe_timeout_id = g_timeout_add (double_click_time, (GtkFunction) test_maybe_timeout, &data); + test_maybe_timeout_id = g_timeout_add (double_click_time, (GSourceFunc) test_maybe_timeout, &data); break; case DOUBLE_CLICK_TEST_MAYBE: if (event->time - double_click_timestamp < double_click_time) { double_click_state = DOUBLE_CLICK_TEST_ON; data.image = image; data.timeout_id = &test_on_timeout_id; - test_on_timeout_id = g_timeout_add (2500, (GtkFunction) test_maybe_timeout, &data); + test_on_timeout_id = g_timeout_add (2500, (GSourceFunc) test_maybe_timeout, &data); } break; case DOUBLE_CLICK_TEST_ON: |