Pre-load the year, because gtk_calendar* is dumb and you need to select
2005-01-07 Glynn Foster <glynn.foster@sun.com> * src/option.c: Pre-load the year, because gtk_calendar* is dumb and you need to select the year to change the month. Fixes #162297.
This commit is contained in:
parent
0c8bca0103
commit
4643fbc3e7
@ -1,3 +1,9 @@
|
|||||||
|
2005-01-07 Glynn Foster <glynn.foster@sun.com>
|
||||||
|
|
||||||
|
* src/option.c: Pre-load the year, because gtk_calendar* is
|
||||||
|
dumb and you need to select the year to change the month. Fixes
|
||||||
|
#162297.
|
||||||
|
|
||||||
2004-12-21 Glynn Foster <glynn.foster@sun.com>
|
2004-12-21 Glynn Foster <glynn.foster@sun.com>
|
||||||
|
|
||||||
* configure.in: Post bump release.
|
* configure.in: Post bump release.
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "option.h"
|
#include "option.h"
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
/* General Options */
|
/* General Options */
|
||||||
gchar *zenity_general_dialog_title;
|
gchar *zenity_general_dialog_title;
|
||||||
@ -713,11 +714,17 @@ zenity_calendar_pre_callback (GOptionContext *context,
|
|||||||
gpointer data,
|
gpointer data,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
|
struct tm *t;
|
||||||
|
time_t current_time;
|
||||||
|
|
||||||
|
time (¤t_time);
|
||||||
|
t = localtime (¤t_time);
|
||||||
|
|
||||||
zenity_calendar_active = FALSE;
|
zenity_calendar_active = FALSE;
|
||||||
zenity_calendar_date_format = NULL;
|
zenity_calendar_date_format = NULL;
|
||||||
zenity_calendar_day = 0;
|
zenity_calendar_day = 0;
|
||||||
zenity_calendar_month = 0;
|
zenity_calendar_month = 0;
|
||||||
zenity_calendar_year = 0;
|
zenity_calendar_year = t->tm_year + 1900;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user