aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/select-names/e-select-names-bonobo.c26
2 files changed, 29 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 45057c9fea..8ddeb1e85a 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2000-07-08 Ettore Perazzoli <ettore@helixcode.com>
+ * gui/component/select-names/e-select-names-bonobo.c
+ (entry_get_property_fn): New function to set the properties.
+
+2000-07-08 Ettore Perazzoli <ettore@helixcode.com>
+
* gui/component/addressbook-factory.c (main): Start up the factory
for `Evolution::Addressbook::SelectNames'.
diff --git a/addressbook/gui/component/select-names/e-select-names-bonobo.c b/addressbook/gui/component/select-names/e-select-names-bonobo.c
index bacba26df3..a7b8f5b11f 100644
--- a/addressbook/gui/component/select-names/e-select-names-bonobo.c
+++ b/addressbook/gui/component/select-names/e-select-names-bonobo.c
@@ -74,6 +74,27 @@ entry_get_property_fn (BonoboPropertyBag *bag,
}
}
+static void
+entry_set_property_fn (BonoboPropertyBag *bag,
+ const BonoboArg *arg,
+ guint arg_id,
+ gpointer user_data)
+{
+ GtkWidget *widget;
+ const char *text;
+
+ widget = GTK_WIDGET (user_data);
+
+ switch (arg_id) {
+ case ENTRY_PROPERTY_ID_TEXT:
+ text = BONOBO_ARG_GET_STRING (arg);
+ gtk_object_set (GTK_OBJECT (widget), "text", text, NULL);
+ break;
+ default:
+ break;
+ }
+}
+
/* CORBA interface implementation. */
@@ -148,9 +169,10 @@ impl_SelectNames_get_entry_for_section (PortableServer_Servant servant,
control = bonobo_control_new (entry_widget);
- property_bag = bonobo_property_bag_new (entry_get_property_fn, NULL, entry_widget);
+ property_bag = bonobo_property_bag_new (entry_get_property_fn, entry_set_property_fn, entry_widget);
bonobo_property_bag_add (property_bag, "text", ENTRY_PROPERTY_ID_TEXT,
- BONOBO_ARG_STRING, NULL, NULL, BONOBO_PROPERTY_READABLE);
+ BONOBO_ARG_STRING, NULL, NULL,
+ BONOBO_PROPERTY_READABLE | BONOBO_PROPERTY_WRITEABLE);
bonobo_control_set_property_bag (control, property_bag);