[gtk/wip/baedert/for-master] scrolledwindow: Always keep the main child first
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] scrolledwindow: Always keep the main child first
- Date: Thu, 7 May 2020 17:01:42 +0000 (UTC)
commit e8bfd939c520c5caccbd81eb780cc2c2e1bce116
Author: Timm Bäder <mail baedert org>
Date: Thu May 7 19:00:30 2020 +0200
scrolledwindow: Always keep the main child first
Otherwise we can't pick the scrollbars, which are allocated behind it.
gtk/gtkscrolledwindow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 6f6af32a83..a778502245 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -4213,7 +4213,7 @@ gtk_scrolled_window_set_child (GtkScrolledWindow *scrolled_window,
}
priv->child = scrollable_child;
- gtk_widget_set_parent (scrollable_child, GTK_WIDGET (scrolled_window));
+ gtk_widget_insert_after (scrollable_child, GTK_WIDGET (scrolled_window), NULL);
g_object_set (scrollable_child,
"hadjustment", hadj,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]