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 committed by Emmanuele Bassi
parent 6f6e536543
commit 534f537a3c

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