]> Pileus Git - ~andy/gtk/commitdiff
[Win32]: On Windows, queue a redraw of child2 whenever we set the pane
authorCody Russell <bratsche@gnome.org>
Sat, 1 Dec 2007 22:08:19 +0000 (22:08 +0000)
committerCody Russell <bratsche@src.gnome.org>
Sat, 1 Dec 2007 22:08:19 +0000 (22:08 +0000)
2007-12-1  Cody Russell  <bratsche@gnome.org>

        * gtk/gtkpaned.c: (gtk_paned_set_position) [Win32]:
        On Windows, queue a redraw of child2 whenever we set
        the pane handle position.  This is unfortunately kind
        of hacky, but solves the visual artifacts that were
        occuring on at least certain types of child widgets
        (e.g., text views and tree views) that are inside
        horizontal or vertical panes. (#144269)

svn path=/trunk/; revision=19095

ChangeLog
gtk/gtkpaned.c

index 662453d7f27cd413e3c684cbc0b4430ffbf56cf4..ecce26a0bf6b3166942d90d11478e75b1784f422 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2007-12-1  Cody Russell  <bratsche@gnome.org>
+
+       * gtk/gtkpaned.c: (gtk_paned_set_position) [Win32]:
+       On Windows, queue a redraw of child2 whenever we set
+       the pane handle position.  This is unfortunately kind
+       of hacky, but solves the visual artifacts that were
+       occuring on at least certain types of child widgets
+       (e.g., text views and tree views) that are inside
+       horizontal or vertical panes. (#144269)
+
 2007-11-30  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkrc.c: Fix doc typos.  (#500672, David Lambert)
index 9c611713d396a0b9adfcaddf64c78801c0ae700c..1752de0cea1609bceb0509d05558b2146a9eb364 100644 (file)
@@ -1232,6 +1232,11 @@ gtk_paned_set_position (GtkPaned *paned,
   g_object_thaw_notify (object);
 
   gtk_widget_queue_resize (GTK_WIDGET (paned));
+
+#ifdef G_OS_WIN32
+  /* Hacky work-around for bug #144269 */
+  gtk_widget_queue_resize (paned->child2);
+#endif
 }
 
 /**