gesture-tracker: Don't pass an autodeny-timeout

Just use the default value of 250.
This commit is contained in:
Jasper St. Pierre 2014-07-08 13:27:38 -04:00
parent 13b7fa4eba
commit 09610daea1
3 changed files with 4 additions and 6 deletions

View File

@ -854,7 +854,7 @@ meta_display_open (void)
meta_screen_create_guard_window (screen);
/* Set up touch support */
the_display->gesture_tracker = meta_gesture_tracker_new (0);
the_display->gesture_tracker = meta_gesture_tracker_new ();
g_signal_connect (the_display->gesture_tracker, "state-changed",
G_CALLBACK (gesture_tracker_state_changed), the_display);
meta_display_grab_window_touch (the_display, DefaultRootWindow (the_display->xdisplay));

View File

@ -68,7 +68,7 @@ struct _MetaGestureTrackerClass
GType meta_gesture_tracker_get_type (void) G_GNUC_CONST;
MetaGestureTracker * meta_gesture_tracker_new (guint autodeny_timeout);
MetaGestureTracker * meta_gesture_tracker_new (void);
gboolean meta_gesture_tracker_handle_event (MetaGestureTracker *tracker,
const ClutterEvent *event);

View File

@ -342,11 +342,9 @@ meta_gesture_tracker_init (MetaGestureTracker *tracker)
}
MetaGestureTracker *
meta_gesture_tracker_new (guint autodeny_timeout)
meta_gesture_tracker_new (void)
{
return g_object_new (META_TYPE_GESTURE_TRACKER,
"autodeny-timeout", autodeny_timeout,
NULL);
return g_object_new (META_TYPE_GESTURE_TRACKER, NULL);
}
static void