aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c20
1 files changed, 5 insertions, 15 deletions
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);
-
}
}