diff options
author | Peter Williams <peterw@ximian.com> | 2001-08-07 03:02:00 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2001-08-07 03:02:00 +0800 |
commit | d7562e99ae9fa1c7a2dc894087b580a9e503fa71 (patch) | |
tree | 4bfdab5bbe5dc2e23c3e6b96059ad4905f29ebf6 /mail/mail-callbacks.c | |
parent | f789abbd422604206c386199c80fb5eac8e34733 (diff) | |
download | gsoc2013-evolution-d7562e99ae9fa1c7a2dc894087b580a9e503fa71.tar.gz gsoc2013-evolution-d7562e99ae9fa1c7a2dc894087b580a9e503fa71.tar.zst gsoc2013-evolution-d7562e99ae9fa1c7a2dc894087b580a9e503fa71.zip |
Reimplement to be asynchronous and pretty, with progressive folder loading
2001-08-06 Peter Williams <peterw@ximian.com>
* subscribe-dialog.[ch]: Reimplement to be asynchronous and pretty,
with progressive folder loading and all sorts of wonderful
improvements.
* mail-callbacks.c (manage_subscriptions): Change to reflect API
update.
* component-factory.c (mail_load_storages): Don't add the storage
if it has been disabled.
* Makefile.am (etspec_DATA): Add subscribe-dialog.etspec.
(glade_DATA): And the glade file.
* subscribe-dialog.etspec: New file, break out the specification
from inside the subscribe-dialog.c
* subscribe-dialog.glade: Update this, actually use it now.
svn path=/trunk/; revision=11706
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index e1bb896ba5..b225c9bd98 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1908,7 +1908,7 @@ print_preview_msg (GtkWidget *button, gpointer user_data) /******************** Begin Subscription Dialog ***************************/ -static GtkWidget *subscribe_dialog = NULL; +static GtkObject *subscribe_dialog = NULL; static void subscribe_dialog_destroy (GtkWidget *widget, gpointer user_data) @@ -1920,11 +1920,12 @@ void manage_subscriptions (BonoboUIComponent *uih, void *user_data, const char *path) { if (!subscribe_dialog) { - subscribe_dialog = subscribe_dialog_new ((FOLDER_BROWSER (user_data))->shell); + subscribe_dialog = subscribe_dialog_new (); gtk_signal_connect (GTK_OBJECT (subscribe_dialog), "destroy", subscribe_dialog_destroy, NULL); - gtk_widget_show (subscribe_dialog); + subscribe_dialog_run_and_close (SUBSCRIBE_DIALOG (subscribe_dialog)); + gtk_object_unref (subscribe_dialog); } else { /* FIXME: raise the subscription dialog window... */ } |