]> Pileus Git - ~andy/gtk/commitdiff
Change queue_resize() to queue_draw(), and add a check for child2 != NULL
authorCody Russell <bratsche@gnome.org>
Thu, 31 Jan 2008 17:53:06 +0000 (17:53 +0000)
committerCody Russell <bratsche@src.gnome.org>
Thu, 31 Jan 2008 17:53:06 +0000 (17:53 +0000)
2008-01-31  Cody Russell  <bratsche@gnome.org>

        * gtk/gtkpaned.c (gtk_paned_set_position):
        Change queue_resize() to queue_draw(), and add a check for
        child2 != NULL in case someone calls this before there is
        a child packed in there.  (#144269 again)

svn path=/trunk/; revision=19449

ChangeLog
gtk/gtkpaned.c

index e79d5a1e76591b954f781124a91f2494ed16f94b..5d6d9de3d59411e0f774108c2a128d40d56d6d34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-31  Cody Russell  <bratsche@gnome.org>
+
+       * gtk/gtkpaned.c (gtk_paned_set_position):
+       Change queue_resize() to queue_draw(), and add a check for
+       child2 != NULL in case someone calls this before there is
+       a child packed in there.  (#144269 again)
+
 2008-01-31  Sven Neumann  <sven@gimp.org>
 
        * gdk/directfb/gdkimage-directfb.c (_gdk_directfb_copy_to_image):
index 0bf8cabe0d6662547250315f186f8e5bc99d5617..30053da25ad1dd50f518244dedc66cd26e00d3d1 100644 (file)
@@ -1235,7 +1235,10 @@ gtk_paned_set_position (GtkPaned *paned,
 
 #ifdef G_OS_WIN32
   /* Hacky work-around for bug #144269 */
-  gtk_widget_queue_resize (paned->child2);
+  if (paned->child2 != NULL)
+    {
+      gtk_widget_queue_draw (paned->child2);
+    }
 #endif
 }