From e8648e48175c1b6d26bff5316c2c7d738245a63c Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Wed, 6 Sep 2000 00:13:05 +0000 Subject: uses the new TaskEditor dialog. 2000-09-06 Damon Chaplin * gui/e-calendar-table.c (e_calendar_table_open_task): uses the new TaskEditor dialog. * gui/dialogs/task-editor.[hc]: * gui/dialogs/task-editor-dialog.glade: updated. Still need to fix the 'Status' property (CalComponent doesn't support it yet), and use a replacement for GnomeDateEdit, since we need to support setting 'None' as the date. 2000-09-04 Damon Chaplin * gui/event-editor.c (obj_updated_cb): (obj_removed_cb): compare the updated object's uid with the one we are editing, and just return if it doesn't match. 2000-09-01 Damon Chaplin * gui/gnome-cal.c (gnome_calendar_tag_calendar): added check to see if the client has loaded successfully. Gets rid of a few warnings. svn path=/trunk/; revision=5217 --- calendar/gui/gnome-cal.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'calendar/gui/gnome-cal.c') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 6a8dae19ce..8373eea7b5 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -444,8 +444,6 @@ gnome_calendar_set_view_internal (GnomeCalendar *gcal, int view; gboolean round_selection = FALSE; - g_print ("In gnome_calendar_set_view_internal: %s\n", page_name); - if (!strcmp (page_name, "dayview")) { view = GNOME_CALENDAR_VIEW_DAY; if (!range_selected) @@ -521,9 +519,6 @@ gnome_calendar_set_pane_positions (GnomeCalendar *gcal) top_pane_height = top_pane_height * (row_height + top_border + bottom_border) + 0.5; - g_print ("right width:%g top height:%g\n", right_pane_width, - top_pane_height); - e_paned_set_position (E_PANED (gcal->hpane), -1); e_paned_set_position (E_PANED (gcal->vpane), -1); /* We add one to each dimension since we can't use 0. */ @@ -1309,6 +1304,11 @@ gnome_calendar_tag_calendar (GnomeCalendar *gcal, ECalendar *ecal) if (!GTK_WIDGET_VISIBLE (ecal)) return; + e_calendar_item_clear_marks (ecal->calitem); + + if (!cal_client_is_loaded (gcal->client)) + return; + e_calendar_item_get_date_range (ecal->calitem, &start_year, &start_month, &start_day, &end_year, &end_month, &end_day); @@ -1329,8 +1329,6 @@ gnome_calendar_tag_calendar (GnomeCalendar *gcal, ECalendar *ecal) end_tm.tm_sec = 0; end_tm.tm_isdst = -1; - e_calendar_item_clear_marks (ecal->calitem); - c.calitem = ecal->calitem; c.start_time = mktime (&start_tm); c.end_time = mktime (&end_tm); @@ -1607,8 +1605,6 @@ gnome_calendar_on_date_navigator_selection_changed (ECalendarItem *calitem, gboolean starts_on_week_start_day = FALSE; struct tm tm; - g_print ("In gnome_calendar_on_date_navigator_selection_changed\n"); - if (!gnome_calendar_get_days_shown (gcal, &start_date, &days_shown)) return; @@ -1744,9 +1740,6 @@ gnome_calendar_on_date_navigator_size_allocate (GtkWidget *widget, gint top_border, bottom_border, left_border, right_border; gfloat hpane_pos, vpane_pos; - g_print ("In gnome_calendar_on_date_navigator_size_allocate %ix%i\n", - allocation->width, allocation->height); - if (gcal->current_view_type != GNOME_CALENDAR_VIEW_NOT_SET) { e_calendar_get_border_size (gcal->date_navigator, &top_border, &bottom_border, @@ -1777,9 +1770,6 @@ gnome_calendar_on_date_navigator_size_allocate (GtkWidget *widget, gcal->hpane_pos = hpane_pos; gcal->vpane_pos = vpane_pos; } - - g_print (" hpane_pos:%g vpane_pos:%g\n", hpane_pos, vpane_pos); - } } -- cgit v1.2.3