Author: cazfi
Date: Thu May  5 21:42:48 2016
New Revision: 32598

URL: http://svn.gna.org/viewcvs/freeciv?rev=32598&view=rev
Log:
Fixed "GtkDialog mapped without a transient parent." warning about policies 
dialog.

See bug #24619

Modified:
    branches/S2_6/client/gui-gtk-2.0/gamedlgs.c
    branches/S2_6/client/gui-gtk-2.0/gui_stuff.c
    branches/S2_6/client/gui-gtk-3.0/gamedlgs.c
    branches/S2_6/client/gui-gtk-3.0/gui_stuff.c

Modified: branches/S2_6/client/gui-gtk-2.0/gamedlgs.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-2.0/gamedlgs.c?rev=32598&r1=32597&r2=32598&view=diff
==============================================================================
--- branches/S2_6/client/gui-gtk-2.0/gamedlgs.c (original)
+++ branches/S2_6/client/gui-gtk-2.0/gamedlgs.c Thu May  5 21:42:48 2016
@@ -1,4 +1,4 @@
-/********************************************************************** 
+/*********************************************************************** 
  Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -333,6 +333,7 @@
                                         GTK_RESPONSE_CLOSE,
                                         NULL);
   }
+  setup_dialog(shell, toplevel);
 
   gtk_window_set_position(GTK_WINDOW(shell), GTK_WIN_POS_MOUSE);
   content = gtk_dialog_get_content_area(GTK_DIALOG(shell));

Modified: branches/S2_6/client/gui-gtk-2.0/gui_stuff.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-2.0/gui_stuff.c?rev=32598&r1=32597&r2=32598&view=diff
==============================================================================
--- branches/S2_6/client/gui-gtk-2.0/gui_stuff.c        (original)
+++ branches/S2_6/client/gui-gtk-2.0/gui_stuff.c        Thu May  5 21:42:48 2016
@@ -1,4 +1,4 @@
-/**********************************************************************
+/***********************************************************************
  Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -314,7 +314,6 @@
     g_signal_connect_after(shell, "close", G_CALLBACK(close_callback), shell);
   }
 }
-
 
 /**************************************************************************
   Emit a dialog response.

Modified: branches/S2_6/client/gui-gtk-3.0/gamedlgs.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-3.0/gamedlgs.c?rev=32598&r1=32597&r2=32598&view=diff
==============================================================================
--- branches/S2_6/client/gui-gtk-3.0/gamedlgs.c (original)
+++ branches/S2_6/client/gui-gtk-3.0/gamedlgs.c Thu May  5 21:42:48 2016
@@ -327,6 +327,7 @@
                                         GTK_RESPONSE_CLOSE,
                                         NULL);
   }
+  setup_dialog(shell, toplevel);
 
   gtk_window_set_position(GTK_WINDOW(shell), GTK_WIN_POS_MOUSE);
   content = gtk_dialog_get_content_area(GTK_DIALOG(shell));

Modified: branches/S2_6/client/gui-gtk-3.0/gui_stuff.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-3.0/gui_stuff.c?rev=32598&r1=32597&r2=32598&view=diff
==============================================================================
--- branches/S2_6/client/gui-gtk-3.0/gui_stuff.c        (original)
+++ branches/S2_6/client/gui-gtk-3.0/gui_stuff.c        Thu May  5 21:42:48 2016
@@ -1,4 +1,4 @@
-/**********************************************************************
+/***********************************************************************
  Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -293,7 +293,6 @@
     g_signal_connect_after(shell, "close", G_CALLBACK(close_callback), shell);
   }
 }
-
 
 /**************************************************************************
   Emit a dialog response.


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to