[gdl] bgo#597417 - GDL appears broken with GTK 2.18 client side window support



commit 5a68071359e9a001e77fcb7c406960e3bd26098d
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Nov 24 17:00:21 2009 +0100

    bgo#597417 -  GDL appears broken with GTK 2.18 client side window support

 gdl/gdl-dock-item-grip.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gdl/gdl-dock-item-grip.c b/gdl/gdl-dock-item-grip.c
index 0737a0f..9a62e1d 100644
--- a/gdl/gdl-dock-item-grip.c
+++ b/gdl/gdl-dock-item-grip.c
@@ -346,9 +346,14 @@ gdl_dock_item_grip_realize (GtkWidget *widget)
                                              &attributes, (GDK_WA_X | GDK_WA_Y));
 
         gdk_window_set_user_data (grip->title_window, grip);
-        widget->window = grip->title_window;
+
+        /* Unref the ref from parent realize for NO_WINDOW */
+        g_object_unref (widget->window);
+
+        /* Need to ref widget->window, because parent unrealize unrefs it */
+        widget->window = g_object_ref (grip->title_window);
         GTK_WIDGET_UNSET_FLAGS(widget, GTK_NO_WINDOW);
-        
+
         /* Unset the background so as to make the colour match the parent window */
         gtk_widget_modify_bg(widget, GTK_STATE_NORMAL, NULL);
  



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