From de63e5c5e35d0a52dcdfa160ac22b9217608c42a Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 19 Nov 2002 04:56:45 +0000 Subject: pass type to bonobo_widget::set_property. (select_names_ok_cb): ", for 2002-11-19 Not Zed * gui/e-meeting-model.c (get_select_name_dialog): pass type to bonobo_widget::set_property. (select_names_ok_cb): ", for get_property. * gui/dialogs/e-delegate-dialog.c (e_delegate_dialog_construct): pass type to bonobo_widget::set_property & plug small leak. (e_delegate_dialog_get_delegate): ", for get_property. (e_delegate_dialog_get_delegate_name): " * gui/dialogs/comp-editor-util.c (comp_editor_contacts_to_widget): pass type to bonobo_widget::set_property. (comp_editor_contacts_to_component): ", for get_property svn path=/trunk/; revision=18835 --- calendar/gui/dialogs/comp-editor-util.c | 4 ++-- calendar/gui/dialogs/e-delegate-dialog.c | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/comp-editor-util.c b/calendar/gui/dialogs/comp-editor-util.c index 8d56097bff..90d0bc3496 100644 --- a/calendar/gui/dialogs/comp-editor-util.c +++ b/calendar/gui/dialogs/comp-editor-util.c @@ -446,7 +446,7 @@ comp_editor_contacts_to_widget (GtkWidget *contacts_entry, #endif bonobo_widget_set_property (BONOBO_WIDGET (contacts_entry), - "destinations", contacts_string, NULL); + "destinations", TC_CORBA_string, contacts_string, NULL); g_free (contacts_string); @@ -471,7 +471,7 @@ comp_editor_contacts_to_component (GtkWidget *contacts_entry, int i; bonobo_widget_get_property (BONOBO_WIDGET (contacts_entry), - "destinations", &contacts_string, NULL); + "destinations", TC_CORBA_string, &contacts_string, NULL); #if 0 g_print ("Contacts string: %s\n", contacts_string ? contacts_string : ""); #endif diff --git a/calendar/gui/dialogs/e-delegate-dialog.c b/calendar/gui/dialogs/e-delegate-dialog.c index c42bd3ca95..5e890221e5 100644 --- a/calendar/gui/dialogs/e-delegate-dialog.c +++ b/calendar/gui/dialogs/e-delegate-dialog.c @@ -151,6 +151,7 @@ e_delegate_dialog_construct (EDelegateDialog *edd, const char *name, const char EDestination *destv[2] = {NULL, NULL}; Bonobo_Control corba_control; CORBA_Environment ev; + char *str; g_return_val_if_fail (edd != NULL, NULL); g_return_val_if_fail (E_IS_DELEGATE_DIALOG (edd), NULL); @@ -204,7 +205,9 @@ e_delegate_dialog_construct (EDelegateDialog *edd, const char *name, const char e_destination_set_name (dest, name); if (address != NULL && *address) e_destination_set_email (dest, address); - bonobo_widget_set_property (BONOBO_WIDGET (priv->entry), "destinations", e_destination_exportv (destv), NULL); + str = e_destination_exportv(destv); + bonobo_widget_set_property (BONOBO_WIDGET (priv->entry), "destinations", TC_CORBA_string, str, NULL); + g_free(str); gtk_object_unref (GTK_OBJECT (dest)); gtk_signal_connect (GTK_OBJECT (priv->addressbook), "clicked", @@ -282,7 +285,7 @@ e_delegate_dialog_get_delegate (EDelegateDialog *edd) priv = edd->priv; - bonobo_widget_get_property (BONOBO_WIDGET (priv->entry), "destinations", &string, NULL); + bonobo_widget_get_property (BONOBO_WIDGET (priv->entry), "destinations", TC_CORBA_string, &string, NULL); destv = e_destination_importv (string); if (destv && destv[0] != NULL) { @@ -309,7 +312,7 @@ e_delegate_dialog_get_delegate_name (EDelegateDialog *edd) priv = edd->priv; - bonobo_widget_get_property (BONOBO_WIDGET (priv->entry), "destinations", &string, NULL); + bonobo_widget_get_property (BONOBO_WIDGET (priv->entry), "destinations", TC_CORBA_string, &string, NULL); destv = e_destination_importv (string); g_message ("importv: [%s]", string); -- cgit