summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-07-07 16:10:52 +0300
committermonsta <[email protected]>2015-07-07 16:10:52 +0300
commitdb6b62171abd6dbfcc0c8f9c928f29af445831cc (patch)
treeb0e9642daa7e628eac19c71dc68138fdbe06d860 /libcaja-private
parent374ca9e7bde63733c828759fec20c129f27fe58e (diff)
parent0a42ba9721b78bd1e85885e42e57ed5eb59bd0ce (diff)
downloadcaja-db6b62171abd6dbfcc0c8f9c928f29af445831cc.tar.bz2
caja-db6b62171abd6dbfcc0c8f9c928f29af445831cc.tar.xz
Merge pull request #431 from NiceandGently/master
icon-container: reset the double click counter after a double click
Diffstat (limited to 'libcaja-private')
-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 3757dabc..12382f5a 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -4835,7 +4835,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