aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/month-view.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-08-27 03:59:46 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-08-27 03:59:46 +0800
commit00098c1abe26a5006bc6df5ff81973b27c7c650a (patch)
tree5702630bbd1ad7ecf7b08a4ce9c63d98f13d716a /calendar/gui/month-view.c
parent4da4e492496efde4b1daaf6883a985332154a64b (diff)
downloadgsoc2013-evolution-00098c1abe26a5006bc6df5ff81973b27c7c650a.tar
gsoc2013-evolution-00098c1abe26a5006bc6df5ff81973b27c7c650a.tar.gz
gsoc2013-evolution-00098c1abe26a5006bc6df5ff81973b27c7c650a.tar.bz2
gsoc2013-evolution-00098c1abe26a5006bc6df5ff81973b27c7c650a.tar.lz
gsoc2013-evolution-00098c1abe26a5006bc6df5ff81973b27c7c650a.tar.xz
gsoc2013-evolution-00098c1abe26a5006bc6df5ff81973b27c7c650a.tar.zst
gsoc2013-evolution-00098c1abe26a5006bc6df5ff81973b27c7c650a.zip
Today: beginning of year view using the canvas. I still have to finish
Today: beginning of year view using the canvas. I still have to finish fixing size allocation and event marking. This is all for today since Bonnie is coming. 1998-08-26 Federico Mena Quintero <federico@nuclecu.unam.mx> * year-view.c: Beginning of the new year view. Sizing and event marking needs to be finished. * gnome-cal.c: Updated for year-view. (gnome_calendar_time_format_changed): Use year_view_time_format_changed(). * year-view.[ch]: Renamed the gncal-year-view.[ch] files to year-view.[ch]. * Makefile.am (gnomecal_SOURCES): Updated year-view.[ch] in the list of source files. svn path=/trunk/; revision=341
Diffstat (limited to 'calendar/gui/month-view.c')
-rw-r--r--calendar/gui/month-view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/month-view.c b/calendar/gui/month-view.c
index 01d4391b25..16e6c72e8a 100644
--- a/calendar/gui/month-view.c
+++ b/calendar/gui/month-view.c
@@ -93,12 +93,12 @@ month_view_new (GnomeCalendar *calendar, time_t month)
MonthView *mv;
g_return_val_if_fail (calendar != NULL, NULL);
+ g_return_val_if_fail (GNOME_IS_CALENDAR (calendar), NULL);
mv = gtk_type_new (month_view_get_type ());
mv->calendar = calendar;
month_view_set (mv, month);
-
return GTK_WIDGET (mv);
}
@@ -106,7 +106,7 @@ static void
month_view_size_request (GtkWidget *widget, GtkRequisition *requisition)
{
g_return_if_fail (widget != NULL);
- g_return_if_fail (GTK_IS_WIDGET (widget));
+ g_return_if_fail (IS_MONTH_VIEW (widget));
g_return_if_fail (requisition != NULL);
if (GTK_WIDGET_CLASS (parent_class)->size_request)
@@ -125,7 +125,7 @@ month_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
int y;
g_return_if_fail (widget != NULL);
- g_return_if_fail (GTK_IS_WIDGET (widget));
+ g_return_if_fail (IS_MONTH_VIEW (widget));
g_return_if_fail (allocation != NULL);
mv = MONTH_VIEW (widget);