From 534f537a3c1ac3c4cce25682c27174f538e6390d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 10 Nov 2015 06:34:15 -0500 Subject: [PATCH] Fix an oversight We must set the construct-only "type" to GTK_WINDOW_POPUP, otherwise this ends upo being a regular toplevel. --- gtk/gtktooltipwindow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtktooltipwindow.c b/gtk/gtktooltipwindow.c index ba71113c2a..cb7cb53fc9 100644 --- a/gtk/gtktooltipwindow.c +++ b/gtk/gtktooltipwindow.c @@ -99,7 +99,9 @@ gtk_tooltip_window_init (GtkTooltipWindow *self) GtkWidget * gtk_tooltip_window_new (void) { - return g_object_new (GTK_TYPE_TOOLTIP_WINDOW, NULL); + return g_object_new (GTK_TYPE_TOOLTIP_WINDOW, + "type", GTK_WINDOW_POPUP, + NULL); } void