From eaed47cb841072d1c2c977e570ab72d2b97f9e4b Mon Sep 17 00:00:00 2001 From: Roy Zhang Date: Sat, 29 Aug 2015 10:35:18 +0800 Subject: 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. --- capplets/mouse/mate-mouse-properties.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'capplets') 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 #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: -- cgit v1.2.1