summaryrefslogtreecommitdiff
path: root/gtk/gtkpaned.c
diff options
context:
space:
mode:
authorCody Russell <bratsche@gnome.org>2007-12-01 22:08:19 +0000
committerCody Russell <bratsche@src.gnome.org>2007-12-01 22:08:19 +0000
commit48110a5013172fc53832a26fa0013a001e093d7c (patch)
treea889c428b4edc54c1da99909f541b4966ea8ed31 /gtk/gtkpaned.c
parent7fbc566d320fda75d38dd161f86dddd01b0679db (diff)
downloadgtk+-48110a5013172fc53832a26fa0013a001e093d7c.tar.gz
[Win32]: On Windows, queue a redraw of child2 whenever we set the pane
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
Diffstat (limited to 'gtk/gtkpaned.c')
-rw-r--r--gtk/gtkpaned.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 9c611713d3..1752de0cea 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -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
}
/**