Fix an oversight

We must set the construct-only "type" to GTK_WINDOW_POPUP, otherwise
this ends upo being a regular toplevel.
This commit is contained in:
Matthias Clasen
2015-11-10 06:34:15 -05:00
parent a938056810
commit 5dbcf7dc0d

View File

@@ -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