[gtk/window-destroy] win32: Don't use gtk_widget_destroy



commit f7fba8b8e76666983ae4f45bc77b4055085bd7f1
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 9 20:51:58 2020 -0400

    win32: Don't use gtk_widget_destroy
    
    The function no longer exists. The code in question
    doesn't make any sense anyway - it instantiates the
    abstract type GtkWidget.

 gtk/gtkprintoperation-win32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c
index 56abcbaf25..aceda0a5ad 100644
--- a/gtk/gtkprintoperation-win32.c
+++ b/gtk/gtkprintoperation-win32.c
@@ -1440,7 +1440,7 @@ pageDlgProc (HWND wnd, UINT message, WPARAM wparam, LPARAM lparam)
       op_win32 = op->priv->platform_data;
       
       g_signal_emit_by_name (op, "custom-widget-apply", op->priv->custom_widget);
-      gtk_widget_destroy (op_win32->embed_widget);
+      g_object_unref (g_object_ref_sink ((op_win32->embed_widget));
       op_win32->embed_widget = NULL;
       op->priv->custom_widget = NULL;
     }


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