diff options
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 128e2fe164..07aedc2c8c 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -114,6 +114,7 @@ struct _EMFolderTreePrivate { guint loaded_row_id; GtkTreeRowReference *drag_row; + gboolean skip_double_click; }; enum { @@ -1991,6 +1992,9 @@ emft_tree_button_press (GtkTreeView *treeview, GdkEventButton *event, EMFolderTr gtk_tree_view_set_cursor (treeview, tree_path, NULL, FALSE); if (event->button == 1 && event->type == GDK_2BUTTON_PRESS) { + if (emft->priv->skip_double_click) { + return FALSE; + } emft_tree_row_activated (treeview, tree_path, NULL, emft); gtk_tree_path_free (tree_path); return TRUE; @@ -2361,3 +2365,9 @@ emft_queue_save_state (EMFolderTree *emft) priv->save_state_id = g_timeout_add_seconds (1, (GSourceFunc) emft_save_state, emft); } + +void +em_folder_tree_set_skip_double_click (EMFolderTree *emft, gboolean skip) +{ + emft->priv->skip_double_click = skip; +} |