2006-08-06 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkcalendar.c (calendar_start_spinning, calendar_timer):
+ Use G_PRIORITY_DEFAULT_IDLE for the month/year-change timer,
+ so that the caller will have a chance to redraw/resize itself
+ between every change. (#348824, Federico Mena Quintero, patch
+ by Michael Meeks)
+
* gtk/gtkfontbutton.c (gtk_font_button_update_font_info):
Add a missing initialization. (#348787, Leonardo Boshell)
2006-08-06 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkcalendar.c (calendar_start_spinning, calendar_timer):
+ Use G_PRIORITY_DEFAULT_IDLE for the month/year-change timer,
+ so that the caller will have a chance to redraw/resize itself
+ between every change. (#348824, Federico Mena Quintero, patch
+ by Michael Meeks)
+
* gtk/gtkfontbutton.c (gtk_font_button_update_font_info):
Add a missing initialization. (#348787, Leonardo Boshell)
g_object_get (settings, "gtk-timeout-repeat", &timeout, NULL);
priv->need_timer = FALSE;
- priv->timer = g_timeout_add (timeout * SCROLL_DELAY_FACTOR,
- (GSourceFunc) calendar_timer,
- (gpointer) calendar);
+ priv->timer = g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE,
+ timeout * SCROLL_DELAY_FACTOR,
+ (GSourceFunc) calendar_timer,
+ (gpointer) calendar, NULL);
}
else
retval = TRUE;
g_object_get (settings, "gtk-timeout-initial", &timeout, NULL);
priv->need_timer = TRUE;
- priv->timer = g_timeout_add (timeout,
- calendar_timer,
- calendar);
+ priv->timer = g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE,
+ timeout,
+ (GSourceFunc) calendar_timer,
+ (gpointer) calendar, NULL);
}
}