diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2009-05-22 20:00:14 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@novell.com> | 2009-05-22 20:13:57 +0800 |
commit | 6d70e07d0842496327e1ca74f93047693ddc545c (patch) | |
tree | 01b40699c5371af70e97c81f3918eda6e3ae7ec1 /mail/em-folder-tree.c | |
parent | ff25805086bbd20226e4684f028912bdb29f0ae1 (diff) | |
download | gsoc2013-evolution-6d70e07d0842496327e1ca74f93047693ddc545c.tar.gz gsoc2013-evolution-6d70e07d0842496327e1ca74f93047693ddc545c.tar.zst gsoc2013-evolution-6d70e07d0842496327e1ca74f93047693ddc545c.zip |
Mail changes required for Anjal.
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index e7063e9fed..4393b2bb73 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -109,6 +109,7 @@ struct _EMFolderTreePrivate { guint loaded_row_id; GtkTreeRowReference *drag_row; + gboolean skip_double_click; }; enum { @@ -436,6 +437,7 @@ em_folder_tree_init (EMFolderTree *emft) priv->treeview = NULL; priv->model = NULL; priv->drag_row = NULL; + priv->skip_double_click = FALSE; emft->priv = priv; } @@ -2291,6 +2293,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; @@ -2643,3 +2648,15 @@ emft_queue_save_state (EMFolderTree *emft) priv->save_state_id = g_timeout_add_seconds (1, (GSourceFunc) emft_save_state, emft); } + +GtkWidget * +em_folder_tree_get_tree_view (EMFolderTree *emft) +{ + return (GtkWidget *)emft->priv->treeview; +} + +void +em_folder_tree_set_skip_double_click (EMFolderTree *emft, gboolean skip) +{ + emft->priv->skip_double_click = skip; +} |