[gtk+] W32: Don't unregister parent window of an embedded widget



commit e1acb934157c8b6865615946762fde015f0bc02b
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Fri Jul 25 23:30:20 2014 +0000

    W32: Don't unregister parent window of an embedded widget
    
    This leads to an assertion failure, because parent window is never registered
    in the first place, widget's own GdkWindow is. But that window is unregistered
    in a generic fashion by GtkWidget code, so there's nothing for us to do here.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733766

 gtk/gtkwin32embedwidget.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwin32embedwidget.c b/gtk/gtkwin32embedwidget.c
index bd2497b..84ca00b 100644
--- a/gtk/gtkwin32embedwidget.c
+++ b/gtk/gtkwin32embedwidget.c
@@ -136,7 +136,6 @@ gtk_win32_embed_widget_unrealize (GtkWidget *widget)
   
   if (embed_widget->parent_window != NULL)
     {
-      gtk_widget_unregister_window (widget, embed_widget->parent_window);
       g_object_unref (embed_widget->parent_window);
       embed_widget->parent_window = NULL;
     }


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