aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-18 12:22:57 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-18 12:22:57 +0800
commitd4f4dc26fcc04d8020812444763a38049a04beff (patch)
tree0b2f43ed018b15e32abb9fe53b87a68c36e070ae /calendar/gui/gnome-cal.c
parentf1b08663ddff6432289ca4780bc823c96d471657 (diff)
downloadgsoc2013-evolution-d4f4dc26fcc04d8020812444763a38049a04beff.tar
gsoc2013-evolution-d4f4dc26fcc04d8020812444763a38049a04beff.tar.gz
gsoc2013-evolution-d4f4dc26fcc04d8020812444763a38049a04beff.tar.bz2
gsoc2013-evolution-d4f4dc26fcc04d8020812444763a38049a04beff.tar.lz
gsoc2013-evolution-d4f4dc26fcc04d8020812444763a38049a04beff.tar.xz
gsoc2013-evolution-d4f4dc26fcc04d8020812444763a38049a04beff.tar.zst
gsoc2013-evolution-d4f4dc26fcc04d8020812444763a38049a04beff.zip
Usability fixes -mig
svn path=/trunk/; revision=156
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index b851b65d44..434af707bc 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -137,8 +137,6 @@ gnome_calendar_init(GnomeCalendar *gcal)
gcal->week_view = 0;
gcal->year_view = 0;
gcal->event_editor = 0;
-
- setup_widgets (gcal);
}
static GtkWidget *
@@ -222,6 +220,7 @@ gnome_calendar_new (char *title)
gcal->current_display = time (NULL);
gcal->cal = calendar_new (title);
+ setup_widgets (gcal);
return retval;
}
@@ -233,16 +232,17 @@ gnome_calendar_update_all (GnomeCalendar *cal, iCalObject *object, int flags)
gncal_year_view_update (GNCAL_YEAR_VIEW (cal->year_view), object, flags);
}
-void
+int
gnome_calendar_load (GnomeCalendar *gcal, char *file)
{
char *r;
if ((r = calendar_load (gcal->cal, file)) != NULL){
printf ("Error loading calendar: %s\n", r);
- return;
+ return 0;
}
gnome_calendar_update_all (gcal, NULL, 0);
+ return 1;
}
void