aboutsummaryrefslogtreecommitdiffstats
path: root/capplet/settings/mail-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-03-28 06:22:23 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-03-28 06:38:40 +0800
commita88e617009854ee7be9ac183a649fdd1d2e846f4 (patch)
treed8f59e949ebf75f34b512b4f0ffaf98d07809bee /capplet/settings/mail-view.c
parent63c26d5712c807f65db9c1b0c98ca06aad76171a (diff)
downloadgsoc2013-evolution-a88e617009854ee7be9ac183a649fdd1d2e846f4.tar.gz
gsoc2013-evolution-a88e617009854ee7be9ac183a649fdd1d2e846f4.tar.zst
gsoc2013-evolution-a88e617009854ee7be9ac183a649fdd1d2e846f4.zip
Rip out Anjal-specific cruft we don't need.
Need to trim off the fat if we're ever going to merge the souped up mail account wizard. Still a long way to go...
Diffstat (limited to 'capplet/settings/mail-view.c')
-rw-r--r--capplet/settings/mail-view.c116
1 files changed, 0 insertions, 116 deletions
diff --git a/capplet/settings/mail-view.c b/capplet/settings/mail-view.c
index 356916d9e9..4c7c9ddd05 100644
--- a/capplet/settings/mail-view.c
+++ b/capplet/settings/mail-view.c
@@ -425,17 +425,6 @@ mail_view_add_settings (MailView *mv, gpointer data, gboolean block)
return (MailViewChild *)msv;
}
-void
-mail_view_switch_to_settings (MailView* mv, MailViewChild *mpv)
-{
- gint position = 0;
-
- position = mv_get_page_number ((GtkNotebook *)mv, (GtkWidget *)mpv);
- REALIGN_NODES (mv->priv->children,mpv);
- gtk_notebook_set_current_page ((GtkNotebook *)mv, position);
- mail_settings_view_activate ((MailSettingsView *)mpv, mv->tree, mv->folder_tree, mv->check_mail, mv->sort_by, mv->slider, FALSE);
-}
-
static MailViewChild *
mail_view_add_account (MailView *mv,
gpointer data,
@@ -551,23 +540,6 @@ mail_view_set_folder_uri (MailView *mv, const gchar *uri)
mv_switch_folder_view (mv, uri);
}
-void
-mail_view_show_sort_popup (MailView *mv, GtkWidget *button)
-{
- mail_folder_view_show_sort_popup ((MailFolderView *)mv->priv->current_view, button);
-}
-
-void
-mail_view_show_list (MailView *mv)
-{
- MailViewChild *child = (MailViewChild *)mv->priv->current_view;
-
- if (child->type == MAIL_VIEW_MESSAGE)
- mv_close_mcv (child, mv);
- else if (child->type == MAIL_VIEW_FOLDER)
- mail_folder_view_show_list ((MailFolderView *)mv->priv->current_view);
-
-}
#endif
void
mail_view_close_view (MailView *mv)
@@ -577,52 +549,12 @@ mail_view_close_view (MailView *mv)
mv_close_mcv (child, mv);
}
-#ifndef ANJAL_SETTINGS
-static void
-mv_slider_clicked (GtkButton *slider, MailView *mv)
-{
- gtk_widget_hide (mv->slider);
- gtk_widget_show (mv->folder_tree);
- if (mv->priv->current_view->type == MAIL_VIEW_FOLDER)
- mail_folder_view_show_list ((MailFolderView *)mv->priv->current_view);
- else {
- gtk_widget_show (mv->folder_tree);
- gtk_widget_hide ((GtkWidget *)slider);
- }
-}
-
-void
-mail_view_set_slider (MailView *mv, GtkWidget *slider)
-{
- mv->slider = slider;
- g_signal_connect (slider, "clicked", G_CALLBACK(mv_slider_clicked), mv);
-}
-#endif
-
-void
-mail_view_set_folder_tree_widget (MailView *mv, GtkWidget *tree)
-{
- mv->folder_tree = tree;
-}
-
void
mail_view_set_folder_tree (MailView *mv, GtkWidget *tree)
{
mv->tree = tree;
}
-void
-mail_view_set_check_email (MailView *mv, GtkWidget *button)
-{
- mv->check_mail = button;;
-}
-
-void
-mail_view_set_sort_by (MailView *mv, GtkWidget *button)
-{
- mv->sort_by = button;;
-}
-
#ifndef ANJAL_SETTINGS
static void
mv_spinner_done (CamelFolder *f, gpointer data)
@@ -632,42 +564,6 @@ mv_spinner_done (CamelFolder *f, gpointer data)
}
void
-mail_view_check_mail (MailView *mv, gboolean deep)
-{
- MailViewChild *child = (MailViewChild *)mv->priv->current_view;
-
- if (child && child->type == MAIL_VIEW_FOLDER) {
- mail_folder_view_check_mail ((MailFolderView *)child);
- CamelFolder *folder;
-
- if ((folder = em_folder_tree_get_selected_folder ((EMFolderTree *)mv->tree)) != NULL) {
- mv_spinner_show (mv, TRUE);
- mail_refresh_folder (folder, mv_spinner_done, mv);
- }
- }
-
- if (deep) {
- em_utils_clear_get_password_canceled_accounts_flag ();
- mail_send_receive (NULL);
- }
-}
-
-void
-mail_view_save (MailView *mv)
-{
- GList *child = mv->priv->children;
- MailViewChild *cview;
-
- while (child) {
- cview = (MailViewChild *)child->data;
- if (cview->type == MAIL_VIEW_FOLDER) {
- mail_folder_view_save ((MailFolderView *)cview);
- }
- child = child->next;
- }
-}
-
-void
mail_view_set_search (MailView *mv, const gchar *search)
{
MailViewChild *child = (MailViewChild *)mv->priv->current_view;
@@ -681,18 +577,6 @@ mail_view_set_search (MailView *mv, const gchar *search)
#endif
void
-mail_view_set_search_entry (MailView *mv, GtkWidget *entry)
-{
- mv->priv->search_entry = entry;
-}
-
-void
-mail_view_init_search (MailView *mv, GtkWidget *search)
-{
- mv->priv->search = search;
-}
-
-void
mail_view_set_shell_view (MailView *mv, EShellView *shell)
{
mv->shell_view = shell;