summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-06-21 10:32:15 +0200
committerraveit65 <[email protected]>2015-06-21 10:32:15 +0200
commit0a42ba9721b78bd1e85885e42e57ed5eb59bd0ce (patch)
tree84eda892b336f88cc4d2c04cccea6b7a4ba3d10b
parent2365acdcb607f7cbb3820900b2a979b1bf23778a (diff)
downloadcaja-0a42ba9721b78bd1e85885e42e57ed5eb59bd0ce.tar.bz2
caja-0a42ba9721b78bd1e85885e42e57ed5eb59bd0ce.tar.xz
icon-container: reset the double click counter after a double click
If we don't do this, we ignore any other double click event that happen during the next 'gtk-double-click-time' interval after the first double click. taken from: https://git.gnome.org/browse/nautilus/commit/?id=a8539a6
-rw-r--r--libcaja-private/caja-icon-container.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index 5db10601..3146c17d 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -4833,7 +4833,12 @@ clicked_within_double_click_interval (CajaIconContainer *container)
last_click_time = current_time;
/* Only allow double click */
- return (click_count == 1);
+ if (click_count == 1) {
+ click_count = 0;
+ return TRUE;
+ } else {
+ return FALSE;
+ }
}
static void