aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog1
-rw-r--r--mail/mail-vfolder.c14
2 files changed, 8 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 3f122dc444..5e922d8c64 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -3,6 +3,7 @@
* mail-vfolder.c (vfolder_create_storage): Connect to the
folder_remove signal on the storage.
(vfolder_remove): New function to remove a vfolder.
+ (vfolder_edit): Raise the window if it already exists.
2001-08-02 Not Zed <NotZed@Ximian.com>
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index 6319546b2f..7eff3c462e 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -422,18 +422,18 @@ vfolder_editor_destroy (GtkWidget *widget, gpointer user_data)
}
static void
-vfolder_editor_clicked(GtkWidget *w, int button, void *data)
+vfolder_editor_clicked (GtkWidget *dialog, int button, void *data)
{
if (button == 0) {
char *user;
- user = g_strdup_printf("%s/vfolders.xml", evolution_dir);
- rule_context_save((RuleContext *)context, user);
- g_free(user);
- vfolder_refresh();
+ user = g_strdup_printf ("%s/vfolders.xml", evolution_dir);
+ rule_context_save ((RuleContext *)context, user);
+ g_free (user);
+ vfolder_refresh ();
}
if (button != -1) {
- gnome_dialog_close((GnomeDialog *)w);
+ gnome_dialog_close (GNOME_DIALOG (dialog));
}
}
@@ -441,7 +441,7 @@ void
vfolder_edit (void)
{
if (vfolder_editor) {
- /* FIXME: raise the vfolder editor window? */
+ gdk_window_raise (GTK_WIDGET (vfolder_editor)->window);
return;
}