diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-03-13 12:50:30 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-03-13 12:50:30 +0800 |
commit | 9a3b0141daad42713cdeae13ffb0d2e8af786540 (patch) | |
tree | db27f6df6801b143cd3a9d15194830822812c74c /shell/evolution-config-control.h | |
parent | 8ffcf0b7552e8b921228a8aa372335a161d262b8 (diff) | |
download | gsoc2013-evolution-9a3b0141daad42713cdeae13ffb0d2e8af786540.tar.gz gsoc2013-evolution-9a3b0141daad42713cdeae13ffb0d2e8af786540.tar.zst gsoc2013-evolution-9a3b0141daad42713cdeae13ffb0d2e8af786540.zip |
Update to create an EvolutionConfigControl instead of just a
* evolution-test-component.c (create_configuration_page): Update
to create an EvolutionConfigControl instead of just a
BonoboControl.
* e-corba-config-page.c (e_corba_config_page_construct): Get a
GNOME_Evolution_ConfigControl instead of a CORBA_Object. Retrieve
the control from it using ::_get_control instead of just assuming
it's a control. Also return a boolen indicating success or
failure.
(e_corba_config_page_new): Likewise, get a
GNOME_Evolution_ConfigControl.
(setup_listener): Renamed from `setup_config_control_interface'.
Get a ::ConfigControl instead of a CORBA::Object. Thus, no need
to queryInterface here anymore.
* evolution-config-control.c, evolution-config-control.h: New,
implementation for the Evolution::ConfigControl interface.
* Evolution-ConfigControl.idl: New attribute `control'.
svn path=/trunk/; revision=16134
Diffstat (limited to 'shell/evolution-config-control.h')
-rw-r--r-- | shell/evolution-config-control.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/shell/evolution-config-control.h b/shell/evolution-config-control.h new file mode 100644 index 0000000000..9048297b5b --- /dev/null +++ b/shell/evolution-config-control.h @@ -0,0 +1,70 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* evolution-config-control.h + * + * Copyright (C) 2002 Ximian, Inc. + * + * 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. + * + * Author: Ettore Perazzoli + */ + +#ifndef EVOLUTION_CONFIG_CONTROL_H +#define EVOLUTION_CONFIG_CONTROL_H + +#include "Evolution.h" + +#include <bonobo/bonobo-xobject.h> +#include <gtk/gtkwidget.h> + +#ifdef cplusplus +extern "C" { +#pragma } +#endif /* cplusplus */ + +#define EVOLUTION_TYPE_CONFIG_CONTROL (evolution_config_control_get_type ()) +#define EVOLUTION_CONFIG_CONTROL(obj) (GTK_CHECK_CAST ((obj), EVOLUTION_TYPE_CONFIG_CONTROL, EvolutionConfigControl)) +#define EVOLUTION_CONFIG_CONTROL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EVOLUTION_TYPE_CONFIG_CONTROL, EvolutionConfigControlClass)) +#define EVOLUTION_IS_CONFIG_CONTROL(obj) (GTK_CHECK_TYPE ((obj), EVOLUTION_TYPE_CONFIG_CONTROL)) +#define EVOLUTION_IS_CONFIG_CONTROL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), EVOLUTION_TYPE_CONFIG_CONTROL)) + +typedef struct _EvolutionConfigControl EvolutionConfigControl; +typedef struct _EvolutionConfigControlPrivate EvolutionConfigControlPrivate; +typedef struct _EvolutionConfigControlClass EvolutionConfigControlClass; + +struct _EvolutionConfigControl { + BonoboXObject parent; + + EvolutionConfigControlPrivate *priv; +}; + +struct _EvolutionConfigControlClass { + BonoboXObjectClass parent_class; + + POA_GNOME_Evolution_ConfigControl__epv epv; + + /* Signals. */ + + void (* apply) (EvolutionConfigControl *control); +}; + + +GtkType evolution_config_control_get_type (void); +EvolutionConfigControl *evolution_config_control_new (GtkWidget *widget); +void evolution_config_control_construct (EvolutionConfigControl *control, + GtkWidget *widget); + +void evolution_config_control_changed (EvolutionConfigControl *config_control); + +#endif /* EVOLUTION_CONFIG_CONTROL_H */ |