[gtk/gtk-3-24] Remove the "without parent" warning



commit abcc4773173ed8becb822971edad3f8d14a7a482
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 21 17:15:41 2018 -0400

    Remove the "without parent" warning
    
    We've had it for a long time, and it hasn't really made
    a difference. And I don't think we are prepared to turn
    this into a hard error. So just drop it.

 gtk/gtkdialog.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 273c370935..0ef0f08b24 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -776,9 +776,6 @@ gtk_dialog_map (GtkWidget *widget)
   GtkWindow *window = GTK_WINDOW (widget);
   GtkDialog *dialog = GTK_DIALOG (widget);
 
-  if (gtk_window_get_transient_for (window) == NULL)
-    g_message ("GtkDialog mapped without a transient parent. This is discouraged.");
-
   GTK_WIDGET_CLASS (gtk_dialog_parent_class)->map (widget);
 
   focus = gtk_window_get_focus (window);


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