aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-09-06 08:13:05 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-09-06 08:13:05 +0800
commite8648e48175c1b6d26bff5316c2c7d738245a63c (patch)
treeb6dcd1e5670462fe810b90a601013556d5db2604 /calendar/gui/gnome-cal.c
parent6403bd5b4def7c610285d2aaad10e793b321091d (diff)
downloadgsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.tar
gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.tar.gz
gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.tar.bz2
gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.tar.lz
gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.tar.xz
gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.tar.zst
gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.zip
uses the new TaskEditor dialog.
2000-09-06 Damon Chaplin <damon@helixcode.com> * 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 <damon@helixcode.com> * 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 <damon@helixcode.com> * 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
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);
-
}
}