From b4bd1b2b1e3c9fa91804c2a27eb3bd35171d8d05 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 24 Dec 2003 17:39:04 +0000 Subject: fix the signal name 2003-12-24 JP Rosevear * gui/e-select-names-renderer.c (esnr_start_editing): fix the signal name * gui/dialogs/meeting-page.glade: add Add Attendee button * gui/dialogs/meeting-page.c (get_widgets): extract add button (add_clicked_cb): edit the attendee after we add it (init_widgets): listen for add clicked (meeting_page_construct): the add button is in the glade file now * gui/e-select-names-editable.c (esne_start_editing): activate the control (e_select_names_editable_get_address): handle null dest (e_select_names_editable_get_name): ditto * gui/e-meeting-store.h: add proto * gui/e-meeting-store.c (e_meeting_store_find_attendee_path): create the path to a given attendee * gui/e-meeting-list-view.h: add proto * gui/e-meeting-list-view.c (e_meeting_list_view_edit): start editing the address of a particular svn path=/trunk/; revision=24009 --- calendar/gui/e-select-names-editable.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'calendar/gui/e-select-names-editable.c') diff --git a/calendar/gui/e-select-names-editable.c b/calendar/gui/e-select-names-editable.c index cf2cd1d661..40b980d3ad 100644 --- a/calendar/gui/e-select-names-editable.c +++ b/calendar/gui/e-select-names-editable.c @@ -44,7 +44,11 @@ static void esne_start_editing (GtkCellEditable *cell_editable, GdkEvent *event) { ESelectNamesEditable *esne = E_SELECT_NAMES_EDITABLE (cell_editable); + BonoboControlFrame *cf; + /* Grab the focus */ + cf = bonobo_widget_get_control_frame (BONOBO_WIDGET (cell_editable)); + bonobo_control_frame_control_activate (cf); } static void @@ -189,13 +193,14 @@ e_select_names_editable_get_address (ESelectNamesEditable *esne) { EABDestination **dest; gchar *dest_str; - gchar *result; + gchar *result = NULL; g_return_val_if_fail (E_SELECT_NAMES_EDITABLE (esne), NULL); dest_str = bonobo_pbclient_get_string (esne->priv->bag, "destinations", NULL); dest = eab_destination_importv (dest_str); - result = g_strdup (eab_destination_get_email (*dest)); + if (dest) + result = g_strdup (eab_destination_get_email (*dest)); eab_destination_freev (dest); return result; @@ -206,13 +211,14 @@ e_select_names_editable_get_name (ESelectNamesEditable *esne) { EABDestination **dest; gchar *dest_str; - gchar *result; + gchar *result = NULL; g_return_val_if_fail (E_SELECT_NAMES_EDITABLE (esne), NULL); dest_str = bonobo_pbclient_get_string (esne->priv->bag, "destinations", NULL); dest = eab_destination_importv (dest_str); - result = g_strdup (eab_destination_get_name (*dest)); + if (dest) + result = g_strdup (eab_destination_get_name (*dest)); eab_destination_freev (dest); return result; -- cgit v1.2.3