From 5bc3165d3bde4b2ee20ed777e672d7538d1a4839 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sat, 8 Dec 2001 03:30:30 +0000 Subject: (committed by Damon) 2001-11-09 Federico Mena Quintero (committed by Damon) Fix bug #14699. * pcs/query.c (QueryState): Added a state QUERY_WAIT_FOR_BACKEND to indicate that the query is not populated as we are waiting for the backend to be opened. (query_init): Start in the QUERY_WAIT_FOR_BACKEND state. (query_destroy): Only disconnect from the backend if we are in a state that implies that we are connected to its signals. (query_construct): If the backend is already loaded, immediately set the state to QUERY_START_PENDING. (backend_opened_cb): Disconnect from the backend's "opened" signal. Set the state to QUERY_START_PENDING. (match_component): We can now only match components if the query is in progress or if it is done. Assert to that effect, and do not ensure_sexp(). (match_component): Do not check for a nonexistent component using g_return_if_fail(). Also, there is no need to ref/unref the component. (backend_obj_updated_cb): Assert to the effect of our state. (backend_obj_removed_cb): Likewise. (parse_sexp): Renamed from ensure_sexp(). Assert that the query has not started. Do not disconnect from the backend's signals here, since we have no connections. (start_query_cb): Set the state to QUERY_IN_PROGRESS here instead of in populate_query(). svn path=/trunk/; revision=14941 --- calendar/ChangeLog | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'calendar/ChangeLog') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 067afc7e8a..ac5fdd96fa 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,33 @@ +2001-11-09 Federico Mena Quintero + + (committed by Damon) + + Fix bug #14699. + + * pcs/query.c (QueryState): Added a state QUERY_WAIT_FOR_BACKEND + to indicate that the query is not populated as we are waiting for + the backend to be opened. + (query_init): Start in the QUERY_WAIT_FOR_BACKEND state. + (query_destroy): Only disconnect from the backend if we are in a + state that implies that we are connected to its signals. + (query_construct): If the backend is already loaded, immediately + set the state to QUERY_START_PENDING. + (backend_opened_cb): Disconnect from the backend's "opened" + signal. Set the state to QUERY_START_PENDING. + (match_component): We can now only match components if the query + is in progress or if it is done. Assert to that effect, and do + not ensure_sexp(). + (match_component): Do not check for a nonexistent component using + g_return_if_fail(). Also, there is no need to ref/unref the + component. + (backend_obj_updated_cb): Assert to the effect of our state. + (backend_obj_removed_cb): Likewise. + (parse_sexp): Renamed from ensure_sexp(). Assert that the query + has not started. Do not disconnect from the backend's signals + here, since we have no connections. + (start_query_cb): Set the state to QUERY_IN_PROGRESS here instead + of in populate_query(). + 2001-12-07 Rodrigo Moya * gui/calendar-config.c (calendar_config_get_default_uri): -- cgit v1.2.3