Prevent event generation in wxGtkCalendarCtrl::SetDate().
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 Mar 2011 10:37:38 +0000 (10:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 Mar 2011 10:37:38 +0000 (10:37 +0000)
commit6c1de05621a8d558eabb59547aee825766c84d6c
tree1da55c64be4c815f09ba692c6009a8dc8b6d73a3
parent6418e3ae72e6257f4b7f10a7fc00062b27a5ee1b
Prevent event generation in wxGtkCalendarCtrl::SetDate().

Block not only gtk_day_selected_callback() but also gtk_month_changed_callback()
as we don't want wxEVT_CALENDAR_PAGE_CHANGED generated neither when calling
SetDate().

This fixes partial resetting of the just set value in wxDatePickerCtrl as
calling SetDate() there resulted in the date being reset from inside it and
the behaviour of the control was clearly wrong as could be seen in the widgets
sample.

Closes #13073.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/calctrl.cpp