mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Bug 539248 – gtk_calender_query_tooltip calls ->detail_func with invalid
2008-07-06 Matthias Clasen <mclasen@redhat.com> Bug 539248 – gtk_calender_query_tooltip calls ->detail_func with invalid dates * gtk/gtkcalendar.c (gtk_calendar_query_tooltip): Check that the cursor is over a valid date before retrieving its details. Patch by Chris Wilson svn path=/trunk/; revision=20789
This commit is contained in:
parent
486d65659f
commit
e36dd2f4e3
@ -1,3 +1,12 @@
|
||||
2008-07-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Bug 539248 – gtk_calender_query_tooltip calls ->detail_func with
|
||||
invalid dates
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_query_tooltip):
|
||||
Check that the cursor is over a valid date before retrieving
|
||||
its details. Patch by Chris Wilson
|
||||
|
||||
2008-07-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Bug 493008 – gdk_screen_get_window_stack is not 64-bit-compatible
|
||||
|
@ -1711,8 +1711,9 @@ gtk_calendar_query_tooltip (GtkWidget *widget,
|
||||
col = calendar_column_from_x (calendar, x - x0);
|
||||
row = calendar_row_from_y (calendar, y - y0);
|
||||
|
||||
if (0 != (priv->detail_overflow[row] & (1 << col)) ||
|
||||
0 == (calendar->display_flags & GTK_CALENDAR_SHOW_DETAILS))
|
||||
if (col != -1 && row != -1 &&
|
||||
(0 != (priv->detail_overflow[row] & (1 << col)) ||
|
||||
0 == (calendar->display_flags & GTK_CALENDAR_SHOW_DETAILS)))
|
||||
{
|
||||
detail = gtk_calendar_get_detail (calendar, row, col);
|
||||
calendar_day_rectangle (calendar, row, col, &day_rect);
|
||||
|
Loading…
Reference in New Issue
Block a user