diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2008-10-28 04:28:57 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-10-28 04:28:57 +0800 |
commit | 14f54991f36d5d3556af1dde53ddb7a8aceafa3a (patch) | |
tree | 32e055e0ff41dc1220fc9e8fabd24547281e316b /mail | |
parent | 85b2913a380c69f14ae0254ad23b10fabfb33667 (diff) | |
download | gsoc2013-evolution-14f54991f36d5d3556af1dde53ddb7a8aceafa3a.tar gsoc2013-evolution-14f54991f36d5d3556af1dde53ddb7a8aceafa3a.tar.gz gsoc2013-evolution-14f54991f36d5d3556af1dde53ddb7a8aceafa3a.tar.bz2 gsoc2013-evolution-14f54991f36d5d3556af1dde53ddb7a8aceafa3a.tar.lz gsoc2013-evolution-14f54991f36d5d3556af1dde53ddb7a8aceafa3a.tar.xz gsoc2013-evolution-14f54991f36d5d3556af1dde53ddb7a8aceafa3a.tar.zst gsoc2013-evolution-14f54991f36d5d3556af1dde53ddb7a8aceafa3a.zip |
Disable parts of my previous calendar work, such that all modules now load!
svn path=/branches/kill-bonobo/; revision=36690
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-shell-sidebar.c | 18 | ||||
-rw-r--r-- | mail/e-mail-shell-view.c | 2 |
2 files changed, 15 insertions, 5 deletions
diff --git a/mail/e-mail-shell-sidebar.c b/mail/e-mail-shell-sidebar.c index e0b09e7665..29f82b328a 100644 --- a/mail/e-mail-shell-sidebar.c +++ b/mail/e-mail-shell-sidebar.c @@ -21,6 +21,11 @@ #include "e-mail-shell-sidebar.h" +#include <string.h> +#include <camel/camel.h> + +#include "e-mail-shell-module.h" + #define E_MAIL_SHELL_SIDEBAR_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE \ ((obj), E_TYPE_MAIL_SHELL_SIDEBAR, EMailShellSidebarPrivate)) @@ -125,6 +130,7 @@ mail_shell_sidebar_constructed (GObject *object) static guint32 mail_shell_sidebar_check_state (EShellSidebar *shell_sidebar) { +#if 0 EMailShellSidebar *mail_shell_sidebar; EShellModule *shell_module; EShellView *shell_view; @@ -154,7 +160,7 @@ mail_shell_sidebar_check_state (EShellSidebar *shell_sidebar) tree_view = GTK_TREE_VIEW (folder_tree); selection = gtk_tree_view_get_selection (tree_view); - if (!emft_selection_get_selected (selection, &model, &iter)) + if (!gtk_tree_selection_get_selected (selection, &model, &iter)) return 0; gtk_tree_model_get ( @@ -177,13 +183,15 @@ mail_shell_sidebar_check_state (EShellSidebar *shell_sidebar) } if (is_virtual) - state |= E_BOOK_SHELL_SIDEBAR_ALLOWS_CHILDREN; + state |= E_MAIL_SHELL_SIDEBAR_ALLOWS_CHILDREN; if (is_outbox) - state |= E_BOOK_SHELL_SIDEBAR_FOLDER_IS_OUTBOX; + state |= E_MAIL_SHELL_SIDEBAR_FOLDER_IS_OUTBOX; if (is_store) - state |= E_BOOK_SHELL_SIDEBAR_FOLDER_IS_STORE; + state |= E_MAIL_SHELL_SIDEBAR_FOLDER_IS_STORE; return state; +#endif + return 0; } static void @@ -267,5 +275,5 @@ e_mail_shell_sidebar_get_folder_tree (EMailShellSidebar *mail_shell_sidebar) g_return_val_if_fail ( E_IS_MAIL_SHELL_SIDEBAR (mail_shell_sidebar), NULL); - return mail_shell_sidebar->priv->folder_tree; + return EM_FOLDER_TREE (mail_shell_sidebar->priv->folder_tree); } diff --git a/mail/e-mail-shell-view.c b/mail/e-mail-shell-view.c index 9059bbb9e6..315cc0be0d 100644 --- a/mail/e-mail-shell-view.c +++ b/mail/e-mail-shell-view.c @@ -67,6 +67,7 @@ mail_shell_view_constructed (GObject *object) static void mail_shell_view_update_actions (EShellView *shell_view) { +#if 0 /* FIXME */ EMailShellViewPrivate *priv; EMailShellSidebar *mail_shell_sidebar; EShellWindow *shell_window; @@ -125,6 +126,7 @@ mail_shell_view_update_actions (EShellView *shell_view) action = ACTION (MAIL_FOLDER_RENAME); sensitive = is_folder && can_delete; gtk_action_set_sensitive (action, sensitive); +#endif } static void |