aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-10-31 05:29:24 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-10-31 05:29:24 +0800
commit5c4e7a0243fd749e4d7b657dc89349531dedcc85 (patch)
tree404aceb6b7495f30e93a4d5e654184b9324be27f /calendar
parent9b40f06c4b347cb302dd3190c9c32ecdf47935a9 (diff)
downloadgsoc2013-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
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/dialogs/meeting-page.c24
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);
>/+17 * Added padding/spacing to this page as specified by the HIG. PartiallyAnna Marie Dirks2003-04-294-17/+30 * Fixes #35814Rodney Dawes2003-04-292-2/+9 * Fixes #41661Rodrigo Moya2003-04-279-12/+145 * set the hpane default to 32000 so we never see a pane no matter the startJP Rosevear2003-04-252-1/+7 * Remove change that shouldn't have been committed.JP Rosevear2003-04-252-2/+2 * Fixes #37552JP Rosevear2003-04-2511-29/+187 * removed unused variable..Rodrigo Moya2003-04-252-1/+5 * Fixed typoRodrigo Moya2003-04-241-1/+1 * Fixes #41641Hans Petter Jansson2003-04-243-19/+36 * Fixes #41671Rodrigo Moya2003-04-243-3/+16 * Fixes part of #41148, #41216 and #41235Rodrigo Moya2003-04-2312-31/+52 * Fixes #22444Rodrigo Moya2003-04-238-74/+257 * removed 'heading' and 'message' labels.Rodrigo Moya2003-04-193-47/+9 * [ fixes #21499 ]Rodney Dawes2003-04-196-3/+16 * Fixes #41459JP Rosevear2003-04-173-10/+19 * Fixes #34498Rodrigo Moya2003-04-172-4/+19 * Fixes #41129, #41215, #41221, #41256Rodrigo Moya2003-04-1712-2759/+3019 * Fixes #41230JP Rosevear2003-04-172-10/+24 * Fixes #39735 and 40257JP Rosevear2003-04-176-162/+132 * If we already have an evolution_dir, free the old one before setting itHans Petter Jansson2003-04-1610-18/+60 * Oops. Add this back. Turns out it's still needed by other parts.Dan Winship2003-04-123-1/+21 * Remove the "Contacts" button and entry from here too. Supposed to haveDan Winship2003-04-117-424/+14 * added missing capabilities.Rodrigo Moya2003-04-119-14/+39 * load the default book to look for additional free/busy info in (init):JP Rosevear2003-04-112-16/+29 * guard against multiple destroy callsJP Rosevear2003-04-112-3/+15 * only print a message if the exception isn't the reasonable NotFoundJP Rosevear2003-04-112-1/+7 * unref the main widget since we ref it when we un-parent itJP Rosevear2003-04-118-1/+40 * added the allocation's X and Y position to the calculated coordinates.Rodrigo Moya2003-04-112-4/+31 * Fixes #41127JP Rosevear2003-04-113-5/+16 * only remove the alarm for backends that want it (Exchange).Rodrigo Moya2003-04-102-1/+8 * added #define's for static capabilities.Rodrigo Moya2003-04-103-1/+19 * Fixes #40133Chris Toshok2003-04-102-1/+9 * Fixes #40915JP Rosevear2003-04-092-1/+11 * Fixes #40952JP Rosevear2003-04-092-1/+8 * kill an old e_utf8_gtk usageMike Kestner2003-04-091-1/+0 * Fixes #40894JP Rosevear2003-04-081-0/+8 * update the selection for all view typesJP Rosevear2003-04-081-25/+11 * Remove button_ok, button_cancel, canceled members from struct Dialog.Ettore Perazzoli2003-04-083-482/+452 * Fixes #35926.Hans Petter Jansson2003-04-083-130/+16 * Fixes #40876JP Rosevear2003-04-082-3/+20 * create button properlyJP Rosevear2003-04-084-36/+17 * Fixes #40252Not Zed2003-04-083-92/+99 * Clean up server namesDan Winship2003-04-084-25/+38 * Slight correction to previous commit; use G_ cast checks.Hans Petter2003-04-071-4/+4 * GObjectify. Eliminates ref/sink warnings from the meeting editor.Hans Petter Jansson2003-04-073-21/+26 * Week view part of fix for #39895.Hans Petter Jansson2003-04-074-3/+23 * Fixes #40790JP Rosevear2003-04-052-5/+14 * (alarm_to_dialog): Make the fileEttore Perazzoli2003-04-052-0/+11 * description is a text buffer (alarm_to_malarm_widgets): dittoJP Rosevear2003-04-052-6/+34 * guard against multiple destroy callsJP Rosevear2003-04-052-7/+14 * Don't free static string.Dan Winship2003-04-052-1/+6 * guard against empty uri as wellJP Rosevear2003-04-052-1/+6 * Fixes #40722JP Rosevear2003-04-042-5/+17 * Add a check to see if the view should be the day-view and change theJeffrey Stedfast2003-04-033-6/+20 * Fixes #39262Rodrigo Moya2003-04-032-7/+40 * added "folder_type" parameter to EvolutionImporterLoadFileFn.Rodrigo Moya2003-04-032-0/+7 * Fixes #39955JP Rosevear2003-04-022-2/+6 * Fixes #40661Rodrigo Moya2003-04-022-0/+7 * Nuke GdkFont and use Pango's font measuring.Hans Petter Jansson2003-04-0211-172/+263 * Fix for #17231 (Evo portion)JP Rosevear2003-04-023-2/+12 * added filename (tasks.ics/calendar.ics) to the URI if it does not containRodrigo Moya2003-04-022-2/+30 * Fixes #39961Rodrigo Moya2003-04-012-22/+13 * Fixes #39895Not Zed2003-03-304-3/+25 * the shell client is a g_object now, ref appropriatelyJP Rosevear2003-03-292-2/+7 * Hold weak references to the CalComponent instead of connecting to theHans Petter Jansson2003-03-293-29/+30 * Fixes #39954Hans Petter Jansson2003-03-292-4/+11 * init new members (get_current_account): get a matching account for theJP Rosevear2003-03-284-59/+149 * use g_object_unref for CalClient's. (create_checkboxes_control): useRodrigo Moya2003-03-272-8/+12 * return correct values in g_return_val_if_fail.Rodrigo Moya2003-03-273-3/+8 * add a parameter(TC_CORBA_string) to the bonobo_widget_get_property.Jack Jia2003-03-262-1/+7 * Update for e_notice moveDan Winship2003-03-255-15/+38 * Utility wrapper around icalparser.Dan Winship2003-03-256-85/+54 * Fixes #32248JP Rosevear2003-03-222-1/+10 * Fixes #31660JP Rosevear2003-03-222-11/+88 * calcomponents are gobjects now (calconduit_load_configuration): ref andJP Rosevear2003-03-213-2/+20 * use a GtkMessageDialog and deal correctly with the dialog's reponses.Rodrigo Moya2003-03-212-4/+14 * Fixes #39770Rodrigo Moya2003-03-202-5/+15 * removed activation of shell_client. (importer_destroy_cb): no need toRodrigo Moya2003-03-202-28/+7 * removed. (load_file_fn, vcal_load_file_fn): use physical_uri instead ofRodrigo Moya2003-03-203-92/+14 * Replace "evolution:menu-name" prop with "evolution:menu_name". [#39692]Ettore Perazzoli2003-03-202-2/+8 * use GtkMessageDialog instead of gnome_question_dialog, and deal correctlyRodrigo Moya2003-03-192-4/+15 * Fixes #34505Rodrigo Moya2003-03-182-7/+34 * Fixes #34095Hans Petter Jansson2003-03-189-7/+46 * Fixes #39757Hans Petter Jansson2003-03-182-6/+18 * Fixes #39736Hans Petter Jansson2003-03-182-1/+8 * Fixes #39740Rodrigo Moya2003-03-156-342/+18 * set_release on the sequence we create.Rodrigo Moya2003-03-152-0/+4 * don't leak the string sequence returned by CalFactory_uriList.Rodrigo Moya2003-03-142-1/+8 * use a weak ref instead of connecting to backend's "destroy" signal.Rodrigo Moya2003-03-132-9/+12 * don't use GNOME_STOCK_* defines, but GTK_STOCK_*.Rodrigo Moya2003-03-13