aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-12-07 01:29:59 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-12-07 01:29:59 +0800
commit37751b5ece11dfa79a4175ec87f72670579d18ea (patch)
tree1d7d3b708990ef068e65a86c7c4250893b9b2577 /addressbook/gui/widgets
parent1889b79a4a6d292c15b009d04be1f4147dc515dd (diff)
downloadgsoc2013-evolution-37751b5ece11dfa79a4175ec87f72670579d18ea.tar
gsoc2013-evolution-37751b5ece11dfa79a4175ec87f72670579d18ea.tar.gz
gsoc2013-evolution-37751b5ece11dfa79a4175ec87f72670579d18ea.tar.bz2
gsoc2013-evolution-37751b5ece11dfa79a4175ec87f72670579d18ea.tar.lz
gsoc2013-evolution-37751b5ece11dfa79a4175ec87f72670579d18ea.tar.xz
gsoc2013-evolution-37751b5ece11dfa79a4175ec87f72670579d18ea.tar.zst
gsoc2013-evolution-37751b5ece11dfa79a4175ec87f72670579d18ea.zip
#include <string.h>.
* gui/component/e-cardlist-model.c: #include <string.h>. * gui/component/addressbook-storage.c: #include <string.h>, <ctype.h>, <unistd.h>. * gui/component/addressbook-factory.c: Removed. * gui/component/addressbook-component.c: #include <bonobo/bonobo-main.h>, <unistd.h> and <string.h>. (create_view): addressbook_new_control() instead of addressbook_factory_new_control(). * gui/component/select-names/e-select-names.c (e_addressbook_create_ebook_table): Removed unused variable. (e_select_names_add_section): Removed unused variable. * gui/component/select-names/e-select-names-manager.c (focus_in_cb): Use g_source_remove() here instead of gtk_timeout_remove(). * gui/widgets/e-minicard-control.c (e_minicard_control_factory_init): Removed. (e_minicard_control_control_factory): Removed. (e_minicard_control_new): New. * gui/component/e-address-widget.c (e_address_widget_factory_init): Removed. (e_address_widget_new_control): Renamed from e_address_widget_factory_new_control(), made public. (e_address_widget_factory): Removed. * gui/component/e-address-popup.c (e_address_popup_new_control): New. (e_address_popup_factory_new_control): Removed. (e_address_popup_factory): Removed. (e_address_popup_factory_init): Removed. * gui/component/addressbook-config.c (addressbook_config_register_factory): Removed. (addressbook_config_create_control): New. * gui/component/addressbook-component.c (addressbook_component_factory_init): Removed. (addressbook_component_get_object): New. (owner_set_cb): Do not call addressbok_config_register_factory(). * gui/component/addressbook.c (addressbook_factory_init): Removed. (addressbook_new_control): Renamed from addressbook_factory_new_control(). svn path=/trunk/; revision=19041
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-minicard-control.c46
-rw-r--r--addressbook/gui/widgets/e-minicard-control.h2
2 files changed, 20 insertions, 28 deletions
diff --git a/addressbook/gui/widgets/e-minicard-control.c b/addressbook/gui/widgets/e-minicard-control.c
index 278cfa0120..d606cd8f04 100644
--- a/addressbook/gui/widgets/e-minicard-control.c
+++ b/addressbook/gui/widgets/e-minicard-control.c
@@ -2,10 +2,24 @@
/*
* e-minicard-control.c
*
+ * Copyright (C) 1999, 2000, 2001, 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.
+ *
* Authors:
* Chris Lahey <clahey@ximian.com>
- *
- * Copyright 1999, 2000, Ximian, Inc.
*/
#include <config.h>
@@ -26,9 +40,6 @@
#include "e-minicard-widget.h"
#include "e-card-merging.h"
-#define MINICARD_CONTROL_ID "OAFIID:GNOME_Evolution_Addressbook_MiniCard_Control"
-#define MINICARD_CONTROL_FACTORY_ID "OAFIID:GNOME_Evolution_Addressbook_MiniCard_ControlFactory"
-
typedef struct {
EMinicardWidget *minicard;
GList *card_list;
@@ -272,10 +283,8 @@ free_struct (gpointer data, GObject *where_object_was)
g_free (minicard_control);
}
-static BonoboObject *
-e_minicard_control_factory (BonoboGenericFactory *Factory,
- const char *component_id,
- void *closure)
+BonoboControl *
+e_minicard_control_new (void)
{
#if 0
BonoboPropertyBag *pb;
@@ -342,22 +351,5 @@ e_minicard_control_factory (BonoboGenericFactory *Factory,
bonobo_object_add_interface (BONOBO_OBJECT (control),
BONOBO_OBJECT (stream));
- return BONOBO_OBJECT (control);
-}
-
-void
-e_minicard_control_factory_init (void)
-{
- static BonoboGenericFactory *factory = NULL;
-
- if (factory != NULL)
- return;
-
- factory =
- bonobo_generic_factory_new (
- MINICARD_CONTROL_FACTORY_ID,
- e_minicard_control_factory, NULL);
-
- if (factory == NULL)
- g_error ("I could not register a EMinicard control factory.");
+ return control;
}
diff --git a/addressbook/gui/widgets/e-minicard-control.h b/addressbook/gui/widgets/e-minicard-control.h
index 4a0da88435..bc0d934384 100644
--- a/addressbook/gui/widgets/e-minicard-control.h
+++ b/addressbook/gui/widgets/e-minicard-control.h
@@ -3,6 +3,6 @@
#include <bonobo/bonobo-control.h>
-void e_minicard_control_factory_init (void);
+BonoboControl *e_minicard_control_new (void);
#endif /* __E_MINICARD_CONTROL_H__ */