diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-10-31 05:29:24 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-10-31 05:29:24 +0800 |
commit | 5c4e7a0243fd749e4d7b657dc89349531dedcc85 (patch) | |
tree | 404aceb6b7495f30e93a4d5e654184b9324be27f | |
parent | 9b40f06c4b347cb302dd3190c9c32ecdf47935a9 (diff) | |
download | gsoc2013-evolution-5c4e7a0243fd749e4d7b657dc89349531dedcc85.tar.gz gsoc2013-evolution-5c4e7a0243fd749e4d7b657dc89349531dedcc85.tar.zst gsoc2013-evolution-5c4e7a0243fd749e4d7b657dc89349531dedcc85.zip |
Commit the ETable click-to-add for if the dialog is being destroyed.
2001-10-30 Federico Mena Quintero <federico@ximian.com>
* gui/dialogs/meeting-page.c (table_canvas_focus_out_cb): Commit
the ETable click-to-add for if the dialog is being destroyed.
Should fix bug #13959.
svn path=/trunk/; revision=14481
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/dialogs/meeting-page.c | 24 |
2 files changed, 29 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index ef061b0b42..c7f3acd214 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,11 @@ 2001-10-30 Federico Mena Quintero <federico@ximian.com> + * gui/dialogs/meeting-page.c (table_canvas_focus_out_cb): Commit + the ETable click-to-add for if the dialog is being destroyed. + Should fix bug #13959. + +2001-10-30 Federico Mena Quintero <federico@ximian.com> + * gui/itip-utils.c (itip_send_comp): Allocate enough space for the string! (was missing the null terminator) Possibly fixes #13924. Thanks a *LOT* to Michael Zucchi for running this through Purify. diff --git a/calendar/gui/dialogs/meeting-page.c b/calendar/gui/dialogs/meeting-page.c index d3e126e003..776a49f93e 100644 --- a/calendar/gui/dialogs/meeting-page.c +++ b/calendar/gui/dialogs/meeting-page.c @@ -440,7 +440,7 @@ meeting_page_fill_component (CompEditorPage *page, CalComponent *comp) if (e_meeting_model_count_actual_attendees (priv->model) < 1) { e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, - "Atleast one attendee is required."); + "At least one attendee is required."); return FALSE; } set_attendees (comp, e_meeting_model_get_attendees (priv->model)); @@ -731,6 +731,25 @@ right_click_cb (ETable *etable, gint row, gint col, GdkEvent *event, gpointer da +/* Callback used when the ETable gets a focus-out event. We have to commit any + * pending click-to-add state for if the event editor is being destroyed. + */ +static gint +table_canvas_focus_out_cb (GtkWidget *widget, GdkEventFocus *event, gpointer data) +{ + MeetingPage *mpage; + MeetingPagePrivate *priv; + ETable *etable; + + mpage = MEETING_PAGE (data); + priv = mpage->priv; + + etable = e_table_scrolled_get_table (priv->etable); + + e_table_commit_click_to_add (etable); + return TRUE; +} + /** * meeting_page_construct: * @mpage: An task details page. @@ -777,6 +796,9 @@ meeting_page_construct (MeetingPage *mpage, EMeetingModel *emm) gtk_signal_connect (GTK_OBJECT (real_table), "right_click", GTK_SIGNAL_FUNC (right_click_cb), mpage); + gtk_signal_connect (GTK_OBJECT (real_table->table_canvas), "focus_out_event", + GTK_SIGNAL_FUNC (table_canvas_focus_out_cb), mpage); + gtk_widget_show (GTK_WIDGET (priv->etable)); gtk_box_pack_start (GTK_BOX (priv->main), GTK_WIDGET (priv->etable), TRUE, TRUE, 2); |