diff options
author | Dan Winship <danw@src.gnome.org> | 2001-10-22 23:21:31 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-10-22 23:21:31 +0800 |
commit | 20c107308bedab984e32802be643edeb55c55164 (patch) | |
tree | d738454bcb49b9af6824ed3078f0f9e2f33dba65 | |
parent | c44198513ebe9cea0fdb6041d8890ec0beeb55ae (diff) | |
download | gsoc2013-evolution-20c107308bedab984e32802be643edeb55c55164.tar.gz gsoc2013-evolution-20c107308bedab984e32802be643edeb55c55164.tar.zst gsoc2013-evolution-20c107308bedab984e32802be643edeb55c55164.zip |
Fix these functions so they don't crash evolution-mail. Too bad it still
* mail-callbacks.c (transfer_msg): Fix these functions so they
don't crash evolution-mail. Too bad it still crashes in the
shell.
svn path=/trunk/; revision=13873
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 13 |
2 files changed, 12 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 96670180ab..87ced53bdf 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-10-22 Dan Winship <danw@ximian.com> + + * mail-callbacks.c (transfer_msg): Fix these functions so they + don't crash evolution-mail. Too bad it still crashes in the + shell. + 2001-10-21 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (on_url_requested): Use diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 2be46015a4..5000bfe6ea 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1222,9 +1222,8 @@ forward (GtkWidget *widget, gpointer user_data) } static void -transfer_msg (GtkWidget *widget, gpointer user_data, gboolean delete_from_source) +transfer_msg (FolderBrowser *fb, gboolean delete_from_source) { - FolderBrowser *fb = user_data; MessageList *ml = fb->message_list; GPtrArray *uids; char *uri, *physical, *path; @@ -1242,7 +1241,7 @@ transfer_msg (GtkWidget *widget, gpointer user_data, gboolean delete_from_source desc = _("Copy message(s) to"); evolution_shell_client_user_select_folder (global_shell_client, - GTK_WINDOW (gtk_widget_get_toplevel (widget)), + GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (fb))), desc, last, allowed_types, &uri, &physical); if (!uri) @@ -1264,25 +1263,25 @@ transfer_msg (GtkWidget *widget, gpointer user_data, gboolean delete_from_source void move_msg_cb (GtkWidget *widget, gpointer user_data) { - transfer_msg (widget, user_data, TRUE); + transfer_msg (user_data, TRUE); } void move_msg (BonoboUIComponent *uih, void *user_data, const char *path) { - transfer_msg (GTK_WIDGET (user_data), NULL, TRUE); + transfer_msg (user_data, TRUE); } void copy_msg_cb (GtkWidget *widget, gpointer user_data) { - transfer_msg (widget, user_data, FALSE); + transfer_msg (user_data, FALSE); } void copy_msg (BonoboUIComponent *uih, void *user_data, const char *path) { - transfer_msg (GTK_WIDGET (user_data), NULL, FALSE); + transfer_msg (user_data, FALSE); } /* Copied from e-shell-view.c */ |