aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/subscribe-dialog.c8
-rw-r--r--mail/subscribe-dialog.h2
3 files changed, 10 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 2298ff0516..63b46541a0 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-07 Peter Williams <peterw@ximian.com>
+
+ * Revert Jeff's changes to subscribe-dialog.[ch]. It's not a widget,
+ it's an object from which you can obtain a widget.
+
2001-08-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (manage_subscriptions): Hide the app->window.
diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c
index 4e868e3c6e..c075bbfa00 100644
--- a/mail/subscribe-dialog.c
+++ b/mail/subscribe-dialog.c
@@ -1520,15 +1520,15 @@ subscribe_dialog_construct (GtkObject *object)
populate_store_list (sc);
}
-GtkWidget *
+GtkObject *
subscribe_dialog_new (void)
{
SubscribeDialog *subscribe_dialog;
-
+
subscribe_dialog = gtk_type_new (SUBSCRIBE_DIALOG_TYPE);
subscribe_dialog_construct (GTK_OBJECT (subscribe_dialog));
-
- return GTK_WIDGET (subscribe_dialog);
+
+ return GTK_OBJECT (subscribe_dialog);
}
E_MAKE_TYPE (subscribe_dialog, "SubscribeDialog", SubscribeDialog, subscribe_dialog_class_init, subscribe_dialog_init, PARENT_TYPE);
diff --git a/mail/subscribe-dialog.h b/mail/subscribe-dialog.h
index b838f13cc4..10fa5d9f44 100644
--- a/mail/subscribe-dialog.h
+++ b/mail/subscribe-dialog.h
@@ -54,7 +54,7 @@ typedef struct {
} SubscribeDialogClass;
GtkType subscribe_dialog_get_type (void);
-GtkWidget *subscribe_dialog_new (void);
+GtkObject *subscribe_dialog_new (void);
void subscribe_dialog_run_and_close (SubscribeDialog *dialog);
#endif /* _SUBSCRIBE_DIALOG_H_ */