From 43fd11d9b80259b3b6ec64de4fdff0767b5611c5 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 14 Aug 1998 00:33:01 +0000 Subject: Doh. Actually recalculate the days using the month and year. 1998-08-13 Federico Mena Quintero * gnome-month-item.c (gnome_month_item_set_arg): Doh. Actually recalculate the days using the month and year. * main.c: Added "Go to" button to quickly jump to a specific date. * goto.c: New file that defines the quick go-to date dialog. * Makefile.am (gnomecal_SOURCES): Added goto.c to the sources. svn path=/trunk/; revision=317 --- calendar/gui/gnome-month-item.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'calendar/gui/gnome-month-item.c') diff --git a/calendar/gui/gnome-month-item.c b/calendar/gui/gnome-month-item.c index f5e3a5b8df..9b00d4d3c8 100644 --- a/calendar/gui/gnome-month-item.c +++ b/calendar/gui/gnome-month-item.c @@ -452,8 +452,6 @@ static void create_days (GnomeMonthItem *mitem) { int i; - char buf[100]; - GdkColor *c; /* Just create the items; they will be positioned and configured by a call to reshape() */ @@ -465,13 +463,11 @@ create_days (GnomeMonthItem *mitem) NULL); /* Box */ - c = >K_WIDGET (GNOME_CANVAS_ITEM (mitem)->canvas)->style->bg[GTK_STATE_NORMAL]; - sprintf (buf, "#%04x%04x%04x", c->red, c->green, c->blue); mitem->items[ITEM_DAY_BOX + i] = gnome_canvas_item_new (GNOME_CANVAS_GROUP (mitem->items[ITEM_DAY_GROUP + i]), gnome_canvas_rect_get_type (), "outline_color", "black", - "fill_color", buf, + "fill_color", "#d6d6d6", NULL); /* Label */ @@ -666,12 +662,6 @@ reanchor (GnomeMonthItem *mitem) NULL); } -static void -recalc_month (GnomeMonthItem *mitem) -{ - /* FIXME */ -} - static void gnome_month_item_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) { @@ -684,12 +674,12 @@ gnome_month_item_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) switch (arg_id) { case ARG_YEAR: mitem->year = GTK_VALUE_UINT (*arg); - recalc_month (mitem); + set_days (mitem); break; case ARG_MONTH: mitem->month = GTK_VALUE_UINT (*arg); - recalc_month (mitem); + set_days (mitem); break; case ARG_X: -- cgit v1.2.3