diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-04-07 14:26:37 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-04-25 13:02:17 -0400 |
commit | 770593db732a44c51d8c1dca6fc1e5dd9d7463f2 (patch) | |
tree | 0be7236e32728049e049ace8f5b14ef6bf48b736 | |
parent | b037acded25fb8b5574c0bd5ad0485486e288f19 (diff) | |
download | nautilus-770593db732a44c51d8c1dca6fc1e5dd9d7463f2.tar.gz |
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.
Thanks to Tanyel A. Nimeu for the initial patch.
https://bugzilla.gnome.org/show_bug.cgi?id=647062
-rw-r--r-- | libnautilus-private/nautilus-icon-container.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c index 92fc51fc9..95dd52034 100644 --- a/libnautilus-private/nautilus-icon-container.c +++ b/libnautilus-private/nautilus-icon-container.c @@ -4391,7 +4391,12 @@ clicked_within_double_click_interval (NautilusIconContainer *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 |