Use G_PRIORITY_DEFAULT_IDLE for the month/year-change timer, so that the
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)
This commit is contained in:
committed by
Matthias Clasen
parent
9c1f72ca48
commit
e7b57543ab
@ -1,5 +1,11 @@
|
|||||||
2006-08-06 Matthias Clasen <mclasen@redhat.com>
|
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):
|
* gtk/gtkfontbutton.c (gtk_font_button_update_font_info):
|
||||||
Add a missing initialization. (#348787, Leonardo Boshell)
|
Add a missing initialization. (#348787, Leonardo Boshell)
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
2006-08-06 Matthias Clasen <mclasen@redhat.com>
|
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):
|
* gtk/gtkfontbutton.c (gtk_font_button_update_font_info):
|
||||||
Add a missing initialization. (#348787, Leonardo Boshell)
|
Add a missing initialization. (#348787, Leonardo Boshell)
|
||||||
|
|
||||||
|
|||||||
@ -2400,9 +2400,10 @@ calendar_timer (gpointer data)
|
|||||||
g_object_get (settings, "gtk-timeout-repeat", &timeout, NULL);
|
g_object_get (settings, "gtk-timeout-repeat", &timeout, NULL);
|
||||||
|
|
||||||
priv->need_timer = FALSE;
|
priv->need_timer = FALSE;
|
||||||
priv->timer = g_timeout_add (timeout * SCROLL_DELAY_FACTOR,
|
priv->timer = g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE,
|
||||||
(GSourceFunc) calendar_timer,
|
timeout * SCROLL_DELAY_FACTOR,
|
||||||
(gpointer) calendar);
|
(GSourceFunc) calendar_timer,
|
||||||
|
(gpointer) calendar, NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
retval = TRUE;
|
retval = TRUE;
|
||||||
@ -2430,9 +2431,10 @@ calendar_start_spinning (GtkCalendar *calendar,
|
|||||||
g_object_get (settings, "gtk-timeout-initial", &timeout, NULL);
|
g_object_get (settings, "gtk-timeout-initial", &timeout, NULL);
|
||||||
|
|
||||||
priv->need_timer = TRUE;
|
priv->need_timer = TRUE;
|
||||||
priv->timer = g_timeout_add (timeout,
|
priv->timer = g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE,
|
||||||
calendar_timer,
|
timeout,
|
||||||
calendar);
|
(GSourceFunc) calendar_timer,
|
||||||
|
(gpointer) calendar, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user