aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-select-names-editable.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-12-25 01:39:04 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-12-25 01:39:04 +0800
commitb4bd1b2b1e3c9fa91804c2a27eb3bd35171d8d05 (patch)
treeb640ea2240743c4e0c6df3a9234c2650f2d4b4d6 /calendar/gui/e-select-names-editable.c
parent978af43d69587e93fba2e861e9fa33ffa198b0e0 (diff)
downloadgsoc2013-evolution-b4bd1b2b1e3c9fa91804c2a27eb3bd35171d8d05.tar
gsoc2013-evolution-b4bd1b2b1e3c9fa91804c2a27eb3bd35171d8d05.tar.gz
gsoc2013-evolution-b4bd1b2b1e3c9fa91804c2a27eb3bd35171d8d05.tar.bz2
gsoc2013-evolution-b4bd1b2b1e3c9fa91804c2a27eb3bd35171d8d05.tar.lz
gsoc2013-evolution-b4bd1b2b1e3c9fa91804c2a27eb3bd35171d8d05.tar.xz
gsoc2013-evolution-b4bd1b2b1e3c9fa91804c2a27eb3bd35171d8d05.tar.zst
gsoc2013-evolution-b4bd1b2b1e3c9fa91804c2a27eb3bd35171d8d05.zip
fix the signal name
2003-12-24 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'calendar/gui/e-select-names-editable.c')
-rw-r--r--calendar/gui/e-select-names-editable.c14
1 files changed, 10 insertions, 4 deletions
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;