diff options
author | Srinivasa Ragavan <sragavan@gnome.org> | 2010-08-12 13:30:03 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@gnome.org> | 2010-08-12 13:35:47 +0800 |
commit | a6c40f7e8f52c44446d8e9b6ba8cbd6a7cfc3911 (patch) | |
tree | 1591085b776bbfff8063818d5f44397109384203 /mail/e-mail-paned-view.c | |
parent | 7dbd643c722a1c7b0ca1c95b571aab3bb7b7ff60 (diff) | |
download | gsoc2013-evolution-a6c40f7e8f52c44446d8e9b6ba8cbd6a7cfc3911.tar gsoc2013-evolution-a6c40f7e8f52c44446d8e9b6ba8cbd6a7cfc3911.tar.gz gsoc2013-evolution-a6c40f7e8f52c44446d8e9b6ba8cbd6a7cfc3911.tar.bz2 gsoc2013-evolution-a6c40f7e8f52c44446d8e9b6ba8cbd6a7cfc3911.tar.lz gsoc2013-evolution-a6c40f7e8f52c44446d8e9b6ba8cbd6a7cfc3911.tar.xz gsoc2013-evolution-a6c40f7e8f52c44446d8e9b6ba8cbd6a7cfc3911.tar.zst gsoc2013-evolution-a6c40f7e8f52c44446d8e9b6ba8cbd6a7cfc3911.zip |
Add keybindings to tab.
Control Up - Go to parent folder.
Control Shift Up/Down - prev/next tab
Control Shift w - close tab.
Diffstat (limited to 'mail/e-mail-paned-view.c')
-rw-r--r-- | mail/e-mail-paned-view.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mail/e-mail-paned-view.c b/mail/e-mail-paned-view.c index 2195f8740f..747147032c 100644 --- a/mail/e-mail-paned-view.c +++ b/mail/e-mail-paned-view.c @@ -71,6 +71,7 @@ struct _EMailPanedViewPrivate { /* Signal handler IDs */ guint message_list_built_id; + guint enable_show_folder : 1; }; enum { @@ -520,6 +521,16 @@ mail_paned_view_reader_open_selected_mail (EMailReader *reader) open_selected_mail (E_MAIL_PANED_VIEW (reader)); } +static gboolean +mail_paned_view_enable_show_folder (EMailReader *reader) +{ + EMailPanedViewPrivate *priv; + + priv = E_MAIL_PANED_VIEW (reader)->priv; + + return priv->enable_show_folder ? TRUE : FALSE; +} + static void mail_paned_view_constructed (GObject *object) { @@ -892,12 +903,14 @@ e_mail_paned_view_reader_init (EMailReaderIface *iface) iface->set_folder = mail_paned_view_set_folder; iface->show_search_bar = mail_paned_view_show_search_bar; iface->open_selected_mail = mail_paned_view_reader_open_selected_mail; + iface->enable_show_folder = mail_paned_view_enable_show_folder; } static void e_mail_paned_view_init (EMailPanedView *view) { view->priv = E_MAIL_PANED_VIEW_GET_PRIVATE (view); + view->priv->enable_show_folder = FALSE; g_signal_connect ( view, "notify::group-by-threads", @@ -934,3 +947,9 @@ e_mail_paned_view_get_preview (EMailPanedView *view) return view->priv->preview; } + +void +e_mail_paned_view_set_enable_show_folder (EMailPanedView *view, gboolean set) +{ + view->priv->enable_show_folder = set ? 1 : 0; +} |