[gnome-games] aisleriot: Take double click time from style
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: Take double click time from style
- Date: Tue, 5 Jan 2010 11:25:55 +0000 (UTC)
commit 852e141f7825ac61917a8473e70cc8909ee6e550
Author: Christian Persch <chpe gnome org>
Date: Tue Jan 5 12:18:42 2010 +0100
aisleriot: Take double click time from style
Fixes double clicking.
aisleriot/board-noclutter.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/aisleriot/board-noclutter.c b/aisleriot/board-noclutter.c
index 9f9e197..5570d4c 100644
--- a/aisleriot/board-noclutter.c
+++ b/aisleriot/board-noclutter.c
@@ -117,7 +117,6 @@ struct _AisleriotBoardPrivate
/* Button press */
int last_click_x;
int last_click_y;
- int double_click_time;
guint32 last_click_time;
/* Moving cards */
@@ -2666,7 +2665,7 @@ aisleriot_board_button_press (GtkWidget *widget,
is_double_click = button == 2 ||
(priv->last_click_left_click &&
- (event->time - priv->last_click_time <= priv->double_click_time) &&
+ (event->time - priv->last_click_time <= ar_style_get_double_click_time (priv->style)) &&
priv->last_clicked_slot == hslot &&
priv->last_clicked_card_id == cardid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]