[gtk+/wip/baedert/drawing: 223/348] toolitemgroup: Remove child window



commit a49f97a60f654fe3a184e4a9310ed9dce218d299
Author: Timm Bäder <mail baedert org>
Date:   Sun Jun 4 17:03:17 2017 +0200

    toolitemgroup: Remove child window

 gtk/gtktoolitemgroup.c |   21 ++-------------------
 1 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index d16d8e7..e9375f2 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -386,7 +386,7 @@ gtk_tool_item_group_init (GtkToolItemGroup *group)
   GtkCssNode *widget_node;
 
   gtk_widget_set_redraw_on_allocate (GTK_WIDGET (group), FALSE);
-  gtk_widget_set_has_window (GTK_WIDGET (group), TRUE);
+  gtk_widget_set_has_window (GTK_WIDGET (group), FALSE);
 
   group->priv = priv = gtk_tool_item_group_get_instance_private (group);
 
@@ -1200,26 +1200,9 @@ gtk_tool_item_group_set_toplevel_window (GtkToolItemGroup *group,
 static void
 gtk_tool_item_group_realize (GtkWidget *widget)
 {
-  GtkAllocation allocation;
   GtkWidget *toplevel_window;
-  GdkWindow *window;
-
-  gtk_widget_set_realized (widget, TRUE);
-
-  gtk_widget_get_allocation (widget, &allocation);
-
-  window = gdk_window_new_child (gtk_widget_get_parent_window (widget),
-                                 GDK_ALL_EVENTS_MASK,
-                                 &allocation);
-  gtk_widget_set_window (widget, window);
-
-  gtk_widget_register_window (widget, window);
-
-  gtk_container_forall (GTK_CONTAINER (widget),
-                        (GtkCallback) gtk_widget_set_parent_window,
-                        window);
 
-  gtk_widget_queue_resize_no_redraw (widget);
+  GTK_WIDGET_CLASS (gtk_tool_item_group_parent_class)->realize (widget);
 
   toplevel_window = gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW);
   gtk_tool_item_group_set_toplevel_window (GTK_TOOL_ITEM_GROUP (widget),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]