gtkcalendar emitting incorrect day_selected signal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTK+ |
Expired
|
Wishlist
|
|||
wxWidgets |
Unknown
|
Unknown
|
|||
gtk+2.0 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
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_
When calendar_
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:/
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libgtk2.0-0 2.24.4-0ubuntu2
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
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=
SHELL=/bin/bash
SourcePackage: gtk+2.0
UpgradeStatus: Upgraded to natty on 2011-04-19 (30 days ago)
Changed in gtk: | |
importance: | Unknown → Wishlist |
status: | Unknown → Confirmed |
tags: | added: patch |
Changed in gtk+2.0 (Ubuntu): | |
status: | New → Triaged |
Changed in gtk+2.0 (Ubuntu): | |
importance: | Undecided → Low |
tags: |
added: patch-needswork removed: patch |
Changed in gtk: | |
status: | Confirmed → Expired |
This patch removes the gtk_calendar_ select_ day out of calendar_ set_month_ prev & next functions, and moves them to where they are needed, stopping the duplicate signals.
This is cleaner than the other patch I sent upstream.