diff options
author | Peter Williams <peterw@src.gnome.org> | 2000-09-06 04:53:22 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2000-09-06 04:53:22 +0800 |
commit | 4cfcef013ab56038a4e172fe2039554eeb8b7a8d (patch) | |
tree | 65c25964a00608fa37b299ae2c601d47d8f5db48 /mail/mail-ops.c | |
parent | c089061f4df4c64ecbdc3e7628a28e9a65de6fc2 (diff) | |
download | gsoc2013-evolution-4cfcef013ab56038a4e172fe2039554eeb8b7a8d.tar.gz gsoc2013-evolution-4cfcef013ab56038a4e172fe2039554eeb8b7a8d.tar.zst gsoc2013-evolution-4cfcef013ab56038a4e172fe2039554eeb8b7a8d.zip |
Add a use-default-port option to the source editor ; bugfixes
svn path=/trunk/; revision=5208
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index a122f19a33..5cb1287ff1 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1594,16 +1594,17 @@ cleanup_load_folder (gpointer in_data, gpointer op_data, CamelException *ex) { load_folder_input_t *input = (load_folder_input_t *) in_data; - gtk_widget_set_sensitive (GTK_WIDGET (input->fb->search_entry), - camel_folder_has_search_capability (input-> - fb-> - folder)); - gtk_widget_set_sensitive (GTK_WIDGET (input->fb->search_menu), - camel_folder_has_search_capability (input-> - fb-> - folder)); - - message_list_set_folder (input->fb->message_list, input->fb->folder); + if (input->fb->folder) { + gtk_widget_set_sensitive (GTK_WIDGET (input->fb->search_entry), + camel_folder_has_search_capability (input-> + fb-> + folder)); + gtk_widget_set_sensitive (GTK_WIDGET (input->fb->search_menu), + camel_folder_has_search_capability (input-> + fb-> + folder)); + message_list_set_folder (input->fb->message_list, input->fb->folder); + } /*g_free (input->url); = fb->uri now */ } @@ -2104,7 +2105,7 @@ mail_do_edit_messages (CamelFolder *folder, GPtrArray *uids, /* ** SETUP FOLDER ****************************************************** */ typedef struct setup_folder_input_s { - const char *name; + gchar *name; CamelFolder **folder; } setup_folder_input_t; @@ -2167,7 +2168,7 @@ mail_do_setup_folder (const char *name, CamelFolder **folder) setup_folder_input_t *input; input = g_new (setup_folder_input_t, 1); - input->name = name; + input->name = g_strdup (name); input->folder = folder; mail_operation_queue (&op_setup_folder, input, TRUE); } |