Use the current day, as well as the current month and year.

Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
	day, as well as the current month and year.
This commit is contained in:
Owen Taylor 2001-09-20 19:35:08 +00:00 committed by Owen Taylor
parent ea77d8d7dd
commit a1f5f7ee6c
9 changed files with 39 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
day, as well as the current month and year.
Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdialog.c (gtk_dialog_init): Automatically set

View File

@ -1,3 +1,8 @@
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
day, as well as the current month and year.
Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdialog.c (gtk_dialog_init): Automatically set

View File

@ -1,3 +1,8 @@
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
day, as well as the current month and year.
Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdialog.c (gtk_dialog_init): Automatically set

View File

@ -1,3 +1,8 @@
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
day, as well as the current month and year.
Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdialog.c (gtk_dialog_init): Automatically set

View File

@ -1,3 +1,8 @@
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
day, as well as the current month and year.
Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdialog.c (gtk_dialog_init): Automatically set

View File

@ -1,3 +1,8 @@
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
day, as well as the current month and year.
Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdialog.c (gtk_dialog_init): Automatically set

View File

@ -1,3 +1,8 @@
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
day, as well as the current month and year.
Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdialog.c (gtk_dialog_init): Automatically set

View File

@ -491,3 +491,6 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
ancestor with a colormap set on it explicitely, or if that
fails, the default colormap.
* The default selected day for GtkCalendar is now the current day in the
month, not the first day in the month. The current month and year
were already used.

View File

@ -447,7 +447,7 @@ gtk_calendar_init (GtkCalendar *calendar)
for (i=0;i<31;i++)
calendar->marked_date[i] = FALSE;
calendar->num_marked_dates = 0;
calendar->selected_day = 1;
calendar->selected_day = tm->tm_mday;
calendar->display_flags = ( GTK_CALENDAR_SHOW_HEADING |
GTK_CALENDAR_SHOW_DAY_NAMES );