gtk+ r19471 - in branches/gtk-2-10: . gdk/win32



Author: bratsche
Date: Tue Feb  5 22:29:14 2008
New Revision: 19471
URL: http://svn.gnome.org/viewvc/gtk+?rev=19471&view=rev

Log:
2008-02-05  Cody Russell  <bratsche gnome org>

        Merged from trunk:

        * gdk/win32/gdkwindow-win32.c: (gdk_window_set_transient_for),
        Properly ref/unref windows and parents.  (#506769)



Modified:
   branches/gtk-2-10/ChangeLog
   branches/gtk-2-10/gdk/win32/gdkwindow-win32.c

Modified: branches/gtk-2-10/gdk/win32/gdkwindow-win32.c
==============================================================================
--- branches/gtk-2-10/gdk/win32/gdkwindow-win32.c	(original)
+++ branches/gtk-2-10/gdk/win32/gdkwindow-win32.c	Tue Feb  5 22:29:14 2008
@@ -2033,6 +2033,8 @@
               trans_impl->transient_children = NULL;
             }
         }
+      g_object_unref (G_OBJECT (window_impl->transient_owner));
+      g_object_unref (G_OBJECT (window));
 
       window_impl->transient_owner = NULL;
     }
@@ -2041,8 +2043,10 @@
       parent_impl = GDK_WINDOW_IMPL_WIN32 (GDK_WINDOW_OBJECT (parent)->impl);
 
       parent_impl->transient_children = g_slist_append (parent_impl->transient_children, window);
+      g_object_ref (G_OBJECT (window));
       parent_impl->num_transients++;
       window_impl->transient_owner = parent;
+      g_object_ref (G_OBJECT (parent));
     }
 
   /* This changes the *owner* of the window, despite the misleading



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