Do not subtract 1 from tm->tm_mday for the default_day.
1998-06-04 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (ee_rp_init_rule): Do not subtract 1 from tm->tm_mday for the default_day. * gnome-cal.c (gnome_calendar_new): (gnome_calendar_goto): Use the start of the day -- things expect it to be that way. svn path=/trunk/; revision=244
This commit is contained in:

committed by
Arturo Espinosa

parent
8ab35d7ba0
commit
463f842fc0
@ -1,3 +1,12 @@
|
||||
1998-06-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* eventedit.c (ee_rp_init_rule): Do not subtract 1 from
|
||||
tm->tm_mday for the default_day.
|
||||
|
||||
* gnome-cal.c (gnome_calendar_new):
|
||||
(gnome_calendar_goto): Use the start of the day -- things expect
|
||||
it to be that way.
|
||||
|
||||
1998-05-27 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
|
||||
|
||||
* eventedit.c (ee_store_recur_rule_to_ical): Fill in
|
||||
|
@ -1,4 +1,4 @@
|
||||
SUBDIRS = versit
|
||||
SUBDIRS = versit card
|
||||
help_base = $(datadir)/gnome/help/cal
|
||||
|
||||
CFLAGS += -Wall
|
||||
@ -88,4 +88,4 @@ install-data-local:
|
||||
$(mkinstalldirs) $(help_base)/C
|
||||
$(INSTALL_DATA) $(srcdir)/topic.dat $(help_base)/C/topic.dat
|
||||
$(INSTALL_DATA) $(srcdir)/gnome-cal.html $(help_base)/C/gnome-cal.html
|
||||
cd $(help_base)/C; ln -sf gnome-cal.html index.html
|
||||
cd $(help_base)/C; ln -sf gnome-cal.html index.html
|
||||
|
@ -965,7 +965,7 @@ ee_rp_init_rule (EventEditor *ee)
|
||||
/* Default to today */
|
||||
|
||||
week_vector = 1 << tm->tm_wday;
|
||||
default_day = tm->tm_mday - 1;
|
||||
default_day = tm->tm_mday;
|
||||
def_pos = 0;
|
||||
def_off = 0;
|
||||
|
||||
|
@ -78,6 +78,8 @@ gnome_calendar_goto (GnomeCalendar *gcal, time_t new_time)
|
||||
|
||||
g_return_if_fail (new_time != -1);
|
||||
|
||||
new_time = time_start_of_day (new_time);
|
||||
|
||||
if (current == gcal->day_view)
|
||||
gncal_day_panel_set (GNCAL_DAY_PANEL (gcal->day_view), new_time);
|
||||
else if (current == gcal->week_view)
|
||||
@ -148,7 +150,7 @@ gnome_calendar_new (char *title)
|
||||
|
||||
gtk_window_set_title(GTK_WINDOW(retval), title);
|
||||
|
||||
gcal->current_display = time (NULL);
|
||||
gcal->current_display = time_start_of_day (time (NULL));
|
||||
gcal->cal = calendar_new (title);
|
||||
setup_widgets (gcal);
|
||||
return retval;
|
||||
|
@ -1,4 +1,4 @@
|
||||
SUBDIRS = versit
|
||||
SUBDIRS = versit card
|
||||
help_base = $(datadir)/gnome/help/cal
|
||||
|
||||
CFLAGS += -Wall
|
||||
@ -88,4 +88,4 @@ install-data-local:
|
||||
$(mkinstalldirs) $(help_base)/C
|
||||
$(INSTALL_DATA) $(srcdir)/topic.dat $(help_base)/C/topic.dat
|
||||
$(INSTALL_DATA) $(srcdir)/gnome-cal.html $(help_base)/C/gnome-cal.html
|
||||
cd $(help_base)/C; ln -sf gnome-cal.html index.html
|
||||
cd $(help_base)/C; ln -sf gnome-cal.html index.html
|
||||
|
@ -965,7 +965,7 @@ ee_rp_init_rule (EventEditor *ee)
|
||||
/* Default to today */
|
||||
|
||||
week_vector = 1 << tm->tm_wday;
|
||||
default_day = tm->tm_mday - 1;
|
||||
default_day = tm->tm_mday;
|
||||
def_pos = 0;
|
||||
def_off = 0;
|
||||
|
||||
|
@ -78,6 +78,8 @@ gnome_calendar_goto (GnomeCalendar *gcal, time_t new_time)
|
||||
|
||||
g_return_if_fail (new_time != -1);
|
||||
|
||||
new_time = time_start_of_day (new_time);
|
||||
|
||||
if (current == gcal->day_view)
|
||||
gncal_day_panel_set (GNCAL_DAY_PANEL (gcal->day_view), new_time);
|
||||
else if (current == gcal->week_view)
|
||||
@ -148,7 +150,7 @@ gnome_calendar_new (char *title)
|
||||
|
||||
gtk_window_set_title(GTK_WINDOW(retval), title);
|
||||
|
||||
gcal->current_display = time (NULL);
|
||||
gcal->current_display = time_start_of_day (time (NULL));
|
||||
gcal->cal = calendar_new (title);
|
||||
setup_widgets (gcal);
|
||||
return retval;
|
||||
|
Reference in New Issue
Block a user