aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-10-22 23:21:31 +0800
committerDan Winship <danw@src.gnome.org>2001-10-22 23:21:31 +0800
commit20c107308bedab984e32802be643edeb55c55164 (patch)
treed738454bcb49b9af6824ed3078f0f9e2f33dba65 /mail/mail-callbacks.c
parentc44198513ebe9cea0fdb6041d8890ec0beeb55ae (diff)
downloadgsoc2013-evolution-20c107308bedab984e32802be643edeb55c55164.tar
gsoc2013-evolution-20c107308bedab984e32802be643edeb55c55164.tar.gz
gsoc2013-evolution-20c107308bedab984e32802be643edeb55c55164.tar.bz2
gsoc2013-evolution-20c107308bedab984e32802be643edeb55c55164.tar.lz
gsoc2013-evolution-20c107308bedab984e32802be643edeb55c55164.tar.xz
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
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c13
1 files changed, 6 insertions, 7 deletions
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 */