diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-08-14 08:33:01 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-08-14 08:33:01 +0800 |
commit | 43fd11d9b80259b3b6ec64de4fdff0767b5611c5 (patch) | |
tree | c0061e68fad9091974b4214d15fd124adbbeb3f2 /calendar/gui/gnome-month-item.c | |
parent | a6266876c6c829d7862b522651ecca1dda6a1c65 (diff) | |
download | gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar.gz gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar.bz2 gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar.lz gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar.xz gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar.zst gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.zip |
Doh. Actually recalculate the days using the month and year.
1998-08-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
* 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
Diffstat (limited to 'calendar/gui/gnome-month-item.c')
-rw-r--r-- | calendar/gui/gnome-month-item.c | 16 |
1 files changed, 3 insertions, 13 deletions
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 */ @@ -667,12 +663,6 @@ reanchor (GnomeMonthItem *mitem) } static void -recalc_month (GnomeMonthItem *mitem) -{ - /* FIXME */ -} - -static void gnome_month_item_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) { GnomeMonthItem *mitem; @@ -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: |