[gtk+] Fix an oversight



commit 534f537a3c1ac3c4cce25682c27174f538e6390d
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Nov 10 06:34:15 2015 -0500

    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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktooltipwindow.c b/gtk/gtktooltipwindow.c
index ba71113..cb7cb53 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


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