aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-03 03:07:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-03 03:07:04 +0800
commit6752871a360830f247f893507c872f490f8955e0 (patch)
tree22fb72ea9adad4989d79e1ca0838a569f678a639
parentb6878cb8d3d11eedee0597301672b61f94355210 (diff)
downloadgsoc2013-evolution-6752871a360830f247f893507c872f490f8955e0.tar
gsoc2013-evolution-6752871a360830f247f893507c872f490f8955e0.tar.gz
gsoc2013-evolution-6752871a360830f247f893507c872f490f8955e0.tar.bz2
gsoc2013-evolution-6752871a360830f247f893507c872f490f8955e0.tar.lz
gsoc2013-evolution-6752871a360830f247f893507c872f490f8955e0.tar.xz
gsoc2013-evolution-6752871a360830f247f893507c872f490f8955e0.tar.zst
gsoc2013-evolution-6752871a360830f247f893507c872f490f8955e0.zip
Connect to the folder_remove signal on the storage. (vfolder_remove): New
2001-08-02 Jeffrey Stedfast <fejj@ximian.com> * 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. svn path=/trunk/; revision=11593
-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;
}