evolution r37094 - in branches/kill-bonobo: mail shell
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r37094 - in branches/kill-bonobo: mail shell
- Date: Sat, 17 Jan 2009 23:46:46 +0000 (UTC)
Author: mbarnes
Date: Sat Jan 17 23:46:45 2009
New Revision: 37094
URL: http://svn.gnome.org/viewvc/evolution?rev=37094&view=rev
Log:
Fix a runtime warning.
Modified:
branches/kill-bonobo/mail/e-mail-reader.c
branches/kill-bonobo/mail/e-mail-shell-view-private.c
branches/kill-bonobo/mail/e-mail-shell-view.c
branches/kill-bonobo/mail/em-folder-view.c
branches/kill-bonobo/shell/e-shell-window-private.c
branches/kill-bonobo/shell/main.c
Modified: branches/kill-bonobo/mail/e-mail-reader.c
==============================================================================
--- branches/kill-bonobo/mail/e-mail-reader.c (original)
+++ branches/kill-bonobo/mail/e-mail-reader.c Sat Jan 17 23:46:45 2009
@@ -1941,9 +1941,10 @@
html_display = e_mail_reader_get_html_display (reader);
message_list = e_mail_reader_get_message_list (reader);
- outgoing = em_utils_folder_is_drafts (folder, folder_uri) ||
+ outgoing = folder != NULL && folder_uri != NULL && (
+ em_utils_folder_is_drafts (folder, folder_uri) ||
em_utils_folder_is_outbox (folder, folder_uri) ||
- em_utils_folder_is_sent (folder, folder_uri);
+ em_utils_folder_is_sent (folder, folder_uri));
if (message_list->folder != NULL)
mail_sync_folder (message_list->folder, NULL, NULL);
@@ -2232,8 +2233,6 @@
EMailReaderIface *iface;
g_return_if_fail (E_IS_MAIL_READER (reader));
- g_return_if_fail (CAMEL_IS_FOLDER (folder));
- g_return_if_fail (folder_uri != NULL);
iface = E_MAIL_READER_GET_IFACE (reader);
g_return_if_fail (iface->set_folder != NULL);
Modified: branches/kill-bonobo/mail/e-mail-shell-view-private.c
==============================================================================
--- branches/kill-bonobo/mail/e-mail-shell-view-private.c (original)
+++ branches/kill-bonobo/mail/e-mail-shell-view-private.c Sat Jan 17 23:46:45 2009
@@ -31,12 +31,15 @@
EMFolderTree *folder_tree)
{
EMailReader *reader;
+ gboolean folder_selected;
reader = E_MAIL_READER (mail_shell_view->priv->mail_shell_content);
- if ((flags & CAMEL_FOLDER_NOSELECT) || uri == NULL)
- e_mail_reader_set_folder (reader, NULL, NULL);
- else {
+ folder_selected =
+ !(flags & CAMEL_FOLDER_NOSELECT) &&
+ full_name != NULL;
+
+ if (folder_selected) {
EMFolderTreeModel *model;
model = em_folder_tree_get_model (folder_tree);
@@ -44,7 +47,8 @@
em_folder_tree_model_save_state (model);
e_mail_reader_set_folder_uri (reader, uri);
- }
+ } else
+ e_mail_reader_set_folder (reader, NULL, NULL);
e_shell_view_update_actions (E_SHELL_VIEW (mail_shell_view));
}
Modified: branches/kill-bonobo/mail/e-mail-shell-view.c
==============================================================================
--- branches/kill-bonobo/mail/e-mail-shell-view.c (original)
+++ branches/kill-bonobo/mail/e-mail-shell-view.c Sat Jan 17 23:46:45 2009
@@ -91,9 +91,8 @@
EShellSidebar *shell_sidebar;
EShellWindow *shell_window;
EMFolderTree *folder_tree;
- EAccount *account;
+ EAccount *account = NULL;
GtkAction *action;
- CamelURL *camel_url;
const gchar *label;
gchar *uri;
gboolean sensitive;
@@ -133,15 +132,16 @@
(state & E_MAIL_SHELL_SIDEBAR_FOLDER_IS_TRASH);
uri = em_folder_tree_get_selected_uri (folder_tree);
- account = mail_config_get_account_by_source_url (uri);
- camel_url = camel_url_new (uri, NULL);
+ if (uri != NULL) {
+ account = mail_config_get_account_by_source_url (uri);
- /* FIXME This belongs in a GroupWise plugin. */
- account_is_groupwise =
- (g_strrstr (uri, "groupwise://") != NULL) &&
- account != NULL && account->parent_uid != NULL;
+ /* FIXME This belongs in a GroupWise plugin. */
+ account_is_groupwise =
+ (g_strrstr (uri, "groupwise://") != NULL) &&
+ account != NULL && account->parent_uid != NULL;
- g_free (uri);
+ g_free (uri);
+ }
action = ACTION (MAIL_ACCOUNT_DISABLE);
visible = (account != NULL) && folder_is_store;
Modified: branches/kill-bonobo/mail/em-folder-view.c
==============================================================================
--- branches/kill-bonobo/mail/em-folder-view.c (original)
+++ branches/kill-bonobo/mail/em-folder-view.c Sat Jan 17 23:46:45 2009
@@ -279,7 +279,7 @@
// struct _EMFolderViewPrivate *p = emfv->priv;
//
// g_slist_foreach (emfv->ui_files, free_one_ui_file, NULL);
-/ g_slist_free(emfv->ui_files);
+// g_slist_free(emfv->ui_files);
/// g_slist_free(emfv->enable_map);
//
// g_free(p);
Modified: branches/kill-bonobo/shell/e-shell-window-private.c
==============================================================================
--- branches/kill-bonobo/shell/e-shell-window-private.c (original)
+++ branches/kill-bonobo/shell/e-shell-window-private.c Sat Jan 17 23:46:45 2009
@@ -264,6 +264,7 @@
gtk_widget_show (widget);
widget = gtk_hbox_new (FALSE, 2);
+ gtk_container_set_border_width (GTK_CONTAINER (widget), 1);
gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
priv->status_area = g_object_ref (widget);
gtk_widget_show (widget);
Modified: branches/kill-bonobo/shell/main.c
==============================================================================
--- branches/kill-bonobo/shell/main.c (original)
+++ branches/kill-bonobo/shell/main.c Sat Jan 17 23:46:45 2009
@@ -187,7 +187,6 @@
/* Extract the directory components. */
dirname = g_path_get_dirname (filename);
- g_debug ("Category Icon Path: %s", dirname);
/* Add it to the icon theme's search path. This relies on
* GtkIconTheme's legacy feature of using image files found
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]