From d7562e99ae9fa1c7a2dc894087b580a9e503fa71 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Mon, 6 Aug 2001 19:02:00 +0000 Subject: Reimplement to be asynchronous and pretty, with progressive folder loading 2001-08-06 Peter Williams * 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 --- mail/subscribe-dialog.h | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) (limited to 'mail/subscribe-dialog.h') diff --git a/mail/subscribe-dialog.h b/mail/subscribe-dialog.h index 2696acf2e2..10fa5d9f44 100644 --- a/mail/subscribe-dialog.h +++ b/mail/subscribe-dialog.h @@ -1,6 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Authors: Chris Toshok + * Peter Williams * * Copyright 2000 Ximian, Inc. (www.ximian.com) * @@ -39,32 +40,12 @@ #define IS_SUBSCRIBE_DIALOG(o) (GTK_CHECK_TYPE ((o), SUBSCRIBE_DIALOG_TYPE)) #define IS_SUBSCRIBE_DIALOG_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), SUBSCRIBE_DIALOG_TYPE)) +typedef struct _SubscribeDialogPrivate SubscribeDialogPrivate; struct _SubscribeDialog { - GtkObject parent; + GtkObject parent; - GNOME_Evolution_Shell shell; - - GtkWidget *app; - - GtkWidget *hpaned; - GtkWidget *table; - GtkWidget *description; - - GtkWidget *store_etable; - ETableModel *store_model; - - GtkWidget *folder_etree; - ETreeModel *folder_model; - ETreePath folder_root; - - CamelStore *store; - EvolutionStorage *storage; - CamelFolderInfo *folder_info; - - GList *store_list; - - GtkWidget *search_entry; - char *search_top; + GtkWidget *app; + SubscribeDialogPrivate *priv; }; @@ -72,7 +53,8 @@ typedef struct { GtkObjectClass parent_class; } SubscribeDialogClass; -GtkType subscribe_dialog_get_type (void); -GtkWidget *subscribe_dialog_new (GNOME_Evolution_Shell shell); +GtkType subscribe_dialog_get_type (void); +GtkObject *subscribe_dialog_new (void); +void subscribe_dialog_run_and_close (SubscribeDialog *dialog); #endif /* _SUBSCRIBE_DIALOG_H_ */ -- cgit v1.2.3