[gtk+] Make unknown window types fatal



commit b0303c539c9e076f6d5ee6ab89699806d4585581
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Nov 19 18:32:11 2016 -0500

    Make unknown window types fatal
    
    This helps gcc to see that there's no point in warning about
    gdk_window being used uninitialized.

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index cef269a..94720c3 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6986,7 +6986,7 @@ gtk_window_realize (GtkWidget *widget)
             }
           break;
         default:
-          g_warning (G_STRLOC": Unknown window type %d!", priv->type);
+          g_error (G_STRLOC": Unknown window type %d!", priv->type);
           break;
         }
     }


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