]> Pileus Git - ~andy/gtk/commitdiff
Use G_PRIORITY_DEFAULT_IDLE for the month/year-change timer, so that the
authorMatthias Clasen <mclasen@redhat.com>
Sun, 6 Aug 2006 04:41:31 +0000 (04:41 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 6 Aug 2006 04:41:31 +0000 (04:41 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkcalendar.c

index 9b9c40298cf8f83bb8a0573f06da82fdbe9eb37a..279ebdec24b82c1c335eb8bfad656d8aa0d81fac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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)
        
index 9b9c40298cf8f83bb8a0573f06da82fdbe9eb37a..279ebdec24b82c1c335eb8bfad656d8aa0d81fac 100644 (file)
@@ -1,5 +1,11 @@
 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)
        
index 01fe262b0f61c9834fefdd09694572431fffd8a0..7e75fd1549e08b12bfbe223acaa4d121408f7677 100644 (file)
@@ -2400,9 +2400,10 @@ calendar_timer (gpointer data)
           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;
@@ -2430,9 +2431,10 @@ calendar_start_spinning (GtkCalendar *calendar,
       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);
     }
 }