From 0701addc195c6315474346c9bd062dc7dc84f80c Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 10 Feb 2003 19:50:55 +0000 Subject: Use g_signal_emit() rather than gtk_signal_emit(). (build_flat): Same 2003-02-10 Jeffrey Stedfast * message-list.c (build_tree): Use g_signal_emit() rather than gtk_signal_emit(). (build_flat): Same here. * mail-signature-editor.c: #include * mail-vfolder.c: #include * mail-session.c: #include * mail-search.c: #include * mail-mt.c: #include * mail-ops.c (save_part_save): Use strcasecmp() instead of g_strcasecmp(). * mail-local.c: #include (reconfigure_folder_reconfigured): Use a GtkDialog instead of gnome_error_dialog(). * mail-format.c (find_preferred_alternative): Use g_ascii_strdown since g_strdown is deprecated. (fake_mime_part_from_data): Removed, no longer used it seems. (destroy_part): Also removed. * mail-display.c (make_popup_window): Replace call to gtk_window_set_polociy() with gtk_window_set_resizable() instead. (popup_size_allocate_cb): Use gtk_window_set_position() with GTK_WIN_POS_MOUSE instead of calculating the position to put it in. svn path=/trunk/; revision=19878 --- mail/message-list.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'mail/message-list.c') diff --git a/mail/message-list.c b/mail/message-list.c index 4223dbdcc9..09645debe4 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1588,19 +1588,19 @@ build_tree (MessageList *ml, CamelFolderThread *thread, CamelFolderChangeInfo *c #endif if (saveuid) { - ETreePath *node = g_hash_table_lookup(ml->uid_nodemap, saveuid); + ETreePath *node = g_hash_table_lookup (ml->uid_nodemap, saveuid); if (node == NULL) { - g_free(ml->cursor_uid); + g_free (ml->cursor_uid); ml->cursor_uid = NULL; - gtk_signal_emit((GtkObject *)ml, message_list_signals[MESSAGE_SELECTED], NULL); + g_signal_emit (ml, message_list_signals[MESSAGE_SELECTED], 0, NULL); } else { - e_tree_set_cursor(ml->tree, node); + e_tree_set_cursor (ml->tree, node); } - g_free(saveuid); - } else if (ml->cursor_uid && !g_hash_table_lookup(ml->uid_nodemap, ml->cursor_uid)) { - g_free(ml->cursor_uid); + g_free (saveuid); + } else if (ml->cursor_uid && !g_hash_table_lookup (ml->uid_nodemap, ml->cursor_uid)) { + g_free (ml->cursor_uid); ml->cursor_uid = NULL; - gtk_signal_emit((GtkObject *)ml, message_list_signals[MESSAGE_SELECTED], NULL); + g_signal_emit (ml, message_list_signals[MESSAGE_SELECTED], 0, NULL); } #ifdef TIMEIT @@ -1905,13 +1905,13 @@ build_flat (MessageList *ml, GPtrArray *summary, CamelFolderChangeInfo *changes) if (saveuid) { ETreePath *node = g_hash_table_lookup(ml->uid_nodemap, saveuid); if (node == NULL) { - g_free(ml->cursor_uid); + g_free (ml->cursor_uid); ml->cursor_uid = NULL; - gtk_signal_emit((GtkObject *)ml, message_list_signals[MESSAGE_SELECTED], NULL); + g_signal_emit (ml, message_list_signals[MESSAGE_SELECTED], 0, NULL); } else { - e_tree_set_cursor(ml->tree, node); + e_tree_set_cursor (ml->tree, node); } - g_free(saveuid); + g_free (saveuid); } #ifdef TIMEIT -- cgit