From 0d68b2038e40ca3c2140035e5f549443d88077b3 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Tue, 7 Aug 2001 23:50:27 +0000 Subject: Revert Jeff's changes to subscribe-dialog.[ch]. It's not a widget, it's an 2001-08-07 Peter Williams * Revert Jeff's changes to subscribe-dialog.[ch]. It's not a widget, it's an object from which you can obtain a widget. svn path=/trunk/; revision=11755 --- mail/ChangeLog | 5 +++++ mail/subscribe-dialog.c | 8 ++++---- mail/subscribe-dialog.h | 2 +- 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 + + * 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 * 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_ */ -- cgit