[gtk+] Call gtk_widget_set_has_window for missing windowed widgets
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Call gtk_widget_set_has_window for missing windowed widgets
- Date: Sat, 12 Nov 2016 20:49:30 +0000 (UTC)
commit c944bf73305ae900f7e944e54f390f624ba9d05f
Author: Timm Bäder <mail baedert org>
Date: Sat Nov 12 08:39:35 2016 +0100
Call gtk_widget_set_has_window for missing windowed widgets
gtk/gtkdrawingarea.c | 1 +
gtk/gtklayout.c | 2 ++
gtk/gtktoolitemgroup.c | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkdrawingarea.c b/gtk/gtkdrawingarea.c
index 786cded..d9f3353 100644
--- a/gtk/gtkdrawingarea.c
+++ b/gtk/gtkdrawingarea.c
@@ -140,6 +140,7 @@ gtk_drawing_area_class_init (GtkDrawingAreaClass *class)
static void
gtk_drawing_area_init (GtkDrawingArea *darea)
{
+ gtk_widget_set_has_window (GTK_WIDGET (darea), TRUE);
}
/**
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index fc87e25..28b72d0 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -747,6 +747,8 @@ gtk_layout_init (GtkLayout *layout)
{
GtkLayoutPrivate *priv;
+ gtk_widget_set_has_window (GTK_WIDGET (layout), TRUE);
+
layout->priv = gtk_layout_get_instance_private (layout);
priv = layout->priv;
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index b732897..ffdcd9a 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -393,6 +393,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);
group->priv = priv = gtk_tool_item_group_get_instance_private (group);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]