aboutsummaryrefslogtreecommitdiffstats
path: root/mail/subscribe-dialog.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-18 04:50:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-18 04:50:00 +0800
commitcf1d544b1068c0f04fe5da5344521f140af24016 (patch)
treea65dc7287cae8756f90f68ae993e6d3fedfb616d /mail/subscribe-dialog.h
parent3ced16bfa226cdc03aa6e38552a78976d05ff171 (diff)
downloadgsoc2013-evolution-cf1d544b1068c0f04fe5da5344521f140af24016.tar.gz
gsoc2013-evolution-cf1d544b1068c0f04fe5da5344521f140af24016.tar.zst
gsoc2013-evolution-cf1d544b1068c0f04fe5da5344521f140af24016.zip
Helper macro.
2001-10-17 Jeffrey Stedfast <fejj@ximian.com> * subscribe-dialog.h (subscribe_dialog_show): Helper macro. * subscribe-dialog.c (subscribe_dialog_run_and_close): Removed. * mail-callbacks.c (check_send_configuration): Don't use gnome_dialog_run_and_close() here, we can easily get away with just using a gtk_widget_show(). (providers_config): Don't use a gnome_dialog_run_and_close() here either. No longer need to use e_gnome_dialog utils. (manage_subscriptions): Don't run_and_close(). svn path=/trunk/; revision=13732
Diffstat (limited to 'mail/subscribe-dialog.h')
-rw-r--r--mail/subscribe-dialog.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/mail/subscribe-dialog.h b/mail/subscribe-dialog.h
index 10fa5d9f44..e546ea8f83 100644
--- a/mail/subscribe-dialog.h
+++ b/mail/subscribe-dialog.h
@@ -41,10 +41,11 @@
#define IS_SUBSCRIBE_DIALOG_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), SUBSCRIBE_DIALOG_TYPE))
typedef struct _SubscribeDialogPrivate SubscribeDialogPrivate;
-struct _SubscribeDialog {
- GtkObject parent;
- GtkWidget *app;
+struct _SubscribeDialog {
+ GtkObject parent;
+
+ GtkWidget *app;
SubscribeDialogPrivate *priv;
};
@@ -55,6 +56,8 @@ typedef struct {
GtkType subscribe_dialog_get_type (void);
GtkObject *subscribe_dialog_new (void);
-void subscribe_dialog_run_and_close (SubscribeDialog *dialog);
+
+/* helper macro */
+#define subscribe_dialog_show(dialog) gtk_widget_show (SUBSCRIBE_DIALOG (dialog)->app)
#endif /* _SUBSCRIBE_DIALOG_H_ */