diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2009-05-22 20:00:14 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-24 21:46:17 +0800 |
commit | c3205a427adcc910f0614cb83249622816440c56 (patch) | |
tree | 1064929a119a5dc7ff8c43aa190030344796dba5 /mail/em-folder-tree.c | |
parent | 6d89d46353caad7a1a9e70cd60d5aa936f534e40 (diff) | |
download | gsoc2013-evolution-c3205a427adcc910f0614cb83249622816440c56.tar.gz gsoc2013-evolution-c3205a427adcc910f0614cb83249622816440c56.tar.zst gsoc2013-evolution-c3205a427adcc910f0614cb83249622816440c56.zip |
Mail changes required for Anjal.
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; +} |