diff options
author | Martin Szulecki | 2010-01-03 17:30:39 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-03 17:30:39 +0100 |
commit | bee6fd75796ecbc58c193e0738c6b56a9135bea1 (patch) | |
tree | 01a04b95febc2fb8587bddb136a27fab63fb0abe | |
parent | 1baf32da6dee2e1ebbbc050b346ce7ba7f673789 (diff) | |
download | sbmanager-bee6fd75796ecbc58c193e0738c6b56a9135bea1.tar.gz sbmanager-bee6fd75796ecbc58c193e0738c6b56a9135bea1.tar.bz2 |
Prevent double clicks on icons to avoid flying icons
-rw-r--r-- | src/sbmanager.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sbmanager.c b/src/sbmanager.c index eb8c075..01fce69 100644 --- a/src/sbmanager.c +++ b/src/sbmanager.c @@ -935,6 +935,11 @@ static gboolean item_button_press_cb(ClutterActor *actor, ClutterButtonEvent *ev return FALSE; } + /* discard double clicks */ + if (event->click_count > 1) { + return FALSE; + } + SBItem *item = (SBItem*)user_data; char *strval = sbitem_get_display_name(item); @@ -989,6 +994,11 @@ static gboolean item_button_release_cb(ClutterActor *actor, ClutterButtonEvent * return FALSE; } + /* discard double clicks */ + if (event->click_count > 1) { + return FALSE; + } + SBItem *item = (SBItem*)user_data; char *strval = sbitem_get_display_name(item); |