aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-wizard.h
diff options
context:
space:
mode:
Diffstat (limited to 'shell/evolution-wizard.h')
-rw-r--r--shell/evolution-wizard.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/shell/evolution-wizard.h b/shell/evolution-wizard.h
index 7bfcfe71af..46e4f0819a 100644
--- a/shell/evolution-wizard.h
+++ b/shell/evolution-wizard.h
@@ -1,9 +1,22 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* evolution-wizard.h
*
- * Copyright (C) 2001 Ximian, Inc.
+ * Copyright (C) 2000-2003 Ximian, Inc.
*
- * Authors: Iain Holmes <iain@ximian.com>
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
*/
#ifndef __EVOLUTION_WIZARD_H__
@@ -11,7 +24,6 @@
#include <bonobo/bonobo-object.h>
#include <bonobo/bonobo-control.h>
-#include <bonobo/bonobo-event-source.h>
#include "Evolution.h"
@@ -22,15 +34,11 @@ typedef struct _EvolutionWizardPrivate EvolutionWizardPrivate;
#define EVOLUTION_WIZARD_SET_SHOW_FINISH "GNOME::Evolution::Wizard_setShowFinish"
#define EVOLUTION_WIZARD_SET_BUTTONS_SENSITIVE "GNOME::Evolution::Wizard_setButtonsSensitive"
-#define EVOLUTION_WIZARD_TYPE (evolution_wizard_get_type ())
-#define EVOLUTION_WIZARD(o) (GTK_CHECK_CAST ((o), EVOLUTION_WIZARD_TYPE, EvolutionWizard))
-#define EVOLUTION_WIZARD_CLASS(k) (GTK_CHECK_CLASS_CAST((k), EVOLUTION_WIZARD_TYPE, EvolutionWizardClass))
-#define IS_EVOLUTION_WIZARD(o) (GTK_CHECK_TYPE ((o), EVOLUTION_WIZARD_TYPE))
-#define IS_EVOLUTION_WIZARD_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), EVOLUTION_WIZARD_TYPE))
-
-typedef BonoboControl *(* EvolutionWizardGetControlFn) (EvolutionWizard *wizard,
- int page_number,
- void *closure);
+#define EVOLUTION_TYPE_WIZARD (evolution_wizard_get_type ())
+#define EVOLUTION_WIZARD(o) (GTK_CHECK_CAST ((o), EVOLUTION_TYPE_WIZARD, EvolutionWizard))
+#define EVOLUTION_WIZARD_CLASS(k) (GTK_CHECK_CLASS_CAST((k), EVOLUTION_TYPE_WIZARD, EvolutionWizardClass))
+#define EVOLUTION_IS_WIZARD(o) (GTK_CHECK_TYPE ((o), EVOLUTION_TYPE_WIZARD))
+#define EVOLUTION_IS_WIZARD_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), EVOLUTION_TYPE_WIZARD))
struct _EvolutionWizard {
BonoboObject object;
@@ -46,25 +54,19 @@ typedef struct {
void (* next) (EvolutionWizard *wizard, int page_number);
void (* prepare) (EvolutionWizard *wizard, int page_number);
void (* back) (EvolutionWizard *wizard, int page_number);
- void (* finish) (EvolutionWizard *wizard, int page_number);
- void (* cancel) (EvolutionWizard *wizard, int page_number);
+ void (* finish) (EvolutionWizard *wizard);
+ void (* cancel) (EvolutionWizard *wizard);
void (* help) (EvolutionWizard *wizard, int page_number);
} EvolutionWizardClass;
GtkType evolution_wizard_get_type (void);
-EvolutionWizard *evolution_wizard_construct (EvolutionWizard *wizard,
- BonoboEventSource *event_source,
- EvolutionWizardGetControlFn get_fn,
- int num_pages,
- void *closure);
-EvolutionWizard *evolution_wizard_new_full (EvolutionWizardGetControlFn get_fn,
- int num_pages,
- BonoboEventSource *event_source,
- void *closure);
-EvolutionWizard *evolution_wizard_new (EvolutionWizardGetControlFn get_fn,
- int num_pages,
- void *closure);
+EvolutionWizard *evolution_wizard_new (void);
+
+void evolution_wizard_add_page (EvolutionWizard *wizard,
+ const char *title,
+ GdkPixbuf *icon,
+ GtkWidget *page);
void evolution_wizard_set_buttons_sensitive (EvolutionWizard *wizard,
gboolean back_sensitive,
@@ -78,6 +80,4 @@ void evolution_wizard_set_page (EvolutionWizard *wizard,
int page_number,
CORBA_Environment *opt_ev);
-BonoboEventSource * evolution_wizard_get_event_source (EvolutionWizard *wizard);
-
#endif /* __EVOLUTION_WIZARD_H__ */