gnome-panel r11145 - branches/gnome-2-22/applets/clock
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-panel r11145 - branches/gnome-2-22/applets/clock
- Date: Wed, 18 Jun 2008 12:17:20 +0000 (UTC)
Author: vuntz
Date: Wed Jun 18 12:17:19 2008
New Revision: 11145
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11145&view=rev
Log:
2008-06-18 Vincent Untz <vuntz gnome org>
* clock.c: (fill_time_settings_window): also select the current day on
the calendar so that if you open the "set time" dialog on two
different days, the calendar is always on the current day (and you
don't accidentaly set time in past)
Patch by Michael Meeks <michael meeks novell com>.
https://bugzilla.novell.com/show_bug.cgi?id=395146
Modified:
branches/gnome-2-22/applets/clock/ChangeLog
branches/gnome-2-22/applets/clock/clock.c
Modified: branches/gnome-2-22/applets/clock/clock.c
==============================================================================
--- branches/gnome-2-22/applets/clock/clock.c (original)
+++ branches/gnome-2-22/applets/clock/clock.c Wed Jun 18 12:17:19 2008
@@ -1776,6 +1776,10 @@
gtk_spin_button_set_value (GTK_SPIN_BUTTON (cd->seconds_spin), now.tm_sec);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (cd->minutes_spin), now.tm_min);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (cd->hours_spin), now.tm_hour);
+
+ gtk_calendar_select_month (GTK_CALENDAR (cd->calendar), now->tm_mon,
+ now->tm_year + 1900);
+ gtk_calendar_select_day (GTK_CALENDAR (cd->calendar), now->tm_mday);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]