Public bug reported:

When clicking (or selecting via keyboard) on the days surrounding a
month in the gtk calendar widget, the widget emits two day_selected
events.

The first, with an incorrect date, is emitted by calendar_set_month_prev
& next functions.. the second emitted correctly from
calendar_select_and_focus_day.

When calendar_set_month_prev & next is called by the
calendar_main_button_press and gtk_calendar_key_press, this first signal
needs to be blocked. (calendar_set_month_prev & next are also called,
but correctly from the month back and forward buttons)

When changing from a month with more days (with one of those days
selected) to a following month with less days, the first signal emitted
in this case contains an invalid date.

You can verify this behaviour in the gtk calendar sample. For example
click may 31st, then click on June 1st in the surrounding days.

I submitted a patch upstream (for the svn version) on this issue.  A fix along 
these lines could be used in gtk+2.0
https://bugzilla.gnome.org/show_bug.cgi?id=106161

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libgtk2.0-0 2.24.4-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri May 20 10:33:52 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANGUAGE=en_AU:en
 PATH=(custom, no user)
 LANG=
 LC_MESSAGES=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: gtk+2.0
UpgradeStatus: Upgraded to natty on 2011-04-19 (30 days ago)

** Affects: gtk
     Importance: Unknown
         Status: Unknown

** Affects: gtk+2.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug natty

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gtk+2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/785479

Title:
  gtkcalendar emitting incorrect day_selected signal

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to