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
This commit is contained in:
Ettore Perazzoli
2002-03-13 04:50:30 +00:00
parent 8ffcf0b755
commit 9a3b0141da
8 changed files with 362 additions and 22 deletions

View File

@ -28,6 +28,7 @@
#include "evolution-shell-component.h"
#include "evolution-activity-client.h"
#include "evolution-config-control.h"
#include <bonobo/bonobo-generic-factory.h>
#include <bonobo/bonobo-main.h>
@ -63,7 +64,7 @@ create_configuration_page (void)
label = gtk_label_new ("This is the configuration page for the test component.");
gtk_widget_show (label);
return BONOBO_OBJECT (bonobo_control_new (label));
return BONOBO_OBJECT (evolution_config_control_new (label));
}
static BonoboObject *