aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-view.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-04-03 05:04:09 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-04-03 05:04:09 +0800
commit2949a505853a87a525831e73af88cd4819892f6f (patch)
treeacef56742614059fb6f3873f24de03c831a521b1 /mail/em-folder-view.c
parenta3eea7e8857928541717df562ab98017e23ecb0d (diff)
downloadgsoc2013-evolution-2949a505853a87a525831e73af88cd4819892f6f.tar.gz
gsoc2013-evolution-2949a505853a87a525831e73af88cd4819892f6f.tar.zst
gsoc2013-evolution-2949a505853a87a525831e73af88cd4819892f6f.zip
Fixes bug #53851
2004-04-02 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #53851 * em-folder-view.c (emfv_popup_move_cb): Save the uri as the default for copy/move. (emfv_popup_move): Use the default copy/move uri. (emfv_popup_copy): Same. * em-folder-selection.c (em_select_folder): Select the uri *after* the dialog gets shown. svn path=/trunk/; revision=25306
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r--mail/em-folder-view.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index 2e9f9de377..fe647000a1 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -614,16 +614,20 @@ struct _move_data {
int delete;
};
+static char *default_xfer_messages_uri = NULL;
+
static void
emfv_popup_move_cb(const char *uri, void *data)
{
struct _move_data *d = data;
-
- if (uri)
+
+ if (uri) {
+ g_free (default_xfer_messages_uri);
+ default_xfer_messages_uri = g_strdup (uri);
mail_transfer_messages(d->emfv->folder, d->uids, d->delete, uri, 0, NULL, NULL);
- else
+ } else
em_utils_uids_free(d->uids);
-
+
g_object_unref(d->emfv);
g_free(d);
}
@@ -639,7 +643,7 @@ emfv_popup_move(GtkWidget *w, EMFolderView *emfv)
d->uids = message_list_get_selected(emfv->list);
d->delete = TRUE;
- em_select_folder ((GtkWindow *) emfv, _("Select folder"), NULL, emfv_popup_move_cb, d);
+ em_select_folder ((GtkWindow *) emfv, _("Select folder"), default_xfer_messages_uri, emfv_popup_move_cb, d);
}
static void
@@ -653,7 +657,7 @@ emfv_popup_copy(GtkWidget *w, EMFolderView *emfv)
d->uids = message_list_get_selected(emfv->list);
d->delete = FALSE;
- em_select_folder ((GtkWindow *) emfv, _("Select folder"), NULL, emfv_popup_move_cb, d);
+ em_select_folder ((GtkWindow *) emfv, _("Select folder"), default_xfer_messages_uri, emfv_popup_move_cb, d);
}
static void
/mame-devel?h=gnome-3.24&id=26afeefab401ca060735a5068d5ef75b31ded352'>Mark as broken on sparc64.linimon2009-03-251-0/+3 * - Install sdlmame tools:amdmi32009-03-202-0/+12 * - Add project homepage as a mirror.alepulver2009-03-182-4/+6 * - Update to version 0.130.alepulver2009-03-139-109/+357 * - Remove conditional checks for FreeBSD 5.x and olderpav2009-01-061-7/+0 * Mark as broken on sparc64.linimon2008-12-101-0/+4 * - Update to version 0.124.alepulver2008-04-234-24/+23 * - Add missing dependencymiwi2008-03-271-1/+2 * - Chase devel/sdl12 shlib version bumpmiwi2008-03-131-0/+1 * - Update to version 0.122u8.alepulver2008-02-064-45/+38 * Mark as broken on sparc64: fail to compile.linimon2008-02-011-0/+4 * - Use GCC 4.2 in FreeBSD 5.x since base system one fails (internal compileralepulver2007-12-161-1/+10 * - Update to version 0.120u2.alepulver2007-12-014-23/+22 * Mark broken: unfetchable.linimon2007-11-19