Tweak the wording of the message.
authorMatthias Clasen <mclasen@redhat.com>
Sat, 8 Apr 2023 16:14:52 +0000 (16:14 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 8 Apr 2023 16:14:52 +0000 (16:14 +0000)
gtk/gtkwindow.c

index 8da622543f56fb56c68d7ea1bea6a541cc890168..2095054f4c4434d822e9d4589ee3221e52231d76 100644 (file)
@@ -3811,9 +3811,8 @@ gtk_window_show (GtkWidget *widget)
   GtkWindow *window = GTK_WINDOW (widget);
   GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
 
-  guint i;
-  if (!g_list_store_find (toplevel_list, window, &i))
-    g_warning("The window is shown after it has been destroyed. This will leave the window in an inconsistent state.");
+  if (!g_list_store_find (toplevel_list, window, NULL))
+    g_warning ("A window is shown after it has been destroyed. This will leave the window in an inconsistent state.");
 
   _gtk_widget_set_visible_flag (widget, TRUE);