[gtk+/wip/ebassi/tooltip-window] Fix an oversight
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/wip/ebassi/tooltip-window] Fix an oversight
- Date: Tue, 10 Nov 2015 11:34:56 +0000 (UTC)
commit 5dbcf7dc0de82b42e523196ea80af3de5fdf6f14
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]