Author: cazfi
Date: Mon Oct 26 22:41:11 2015
New Revision: 30225

URL: http://svn.gna.org/viewcvs/freeciv?rev=30225&view=rev
Log:
Fixed ruleset initiated suggestion dialog parent window setup in gtk3-client.

See bug #23960

Modified:
    trunk/client/gui-gtk-2.0/tileset_dlg.c
    trunk/client/gui-gtk-3.0/soundset_dlg.c
    trunk/client/gui-gtk-3.0/tileset_dlg.c

Modified: trunk/client/gui-gtk-2.0/tileset_dlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-2.0/tileset_dlg.c?rev=30225&r1=30224&r2=30225&view=diff
==============================================================================
--- trunk/client/gui-gtk-2.0/tileset_dlg.c      (original)
+++ trunk/client/gui-gtk-2.0/tileset_dlg.c      Mon Oct 26 22:41:11 2015
@@ -17,11 +17,14 @@
 
 #include <gtk/gtk.h>
 
+/* utility */
 #include "fcintl.h"
 
+/* common */
 #include "game.h"
 #include "unitlist.h"
 
+/* client */
 #include "tilespec.h"
 
 #include "dialogs_g.h"

Modified: trunk/client/gui-gtk-3.0/soundset_dlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.0/soundset_dlg.c?rev=30225&r1=30224&r2=30225&view=diff
==============================================================================
--- trunk/client/gui-gtk-3.0/soundset_dlg.c     (original)
+++ trunk/client/gui-gtk-3.0/soundset_dlg.c     Mon Oct 26 22:41:11 2015
@@ -26,6 +26,8 @@
 /* client */
 #include "audio.h"
 #include "client_main.h"
+#include "gui_main.h"
+#include "gui_stuff.h"
 
 #include "dialogs_g.h"
 
@@ -61,6 +63,7 @@
                                        _("Keep current soundset"),
                                        GTK_RESPONSE_NO,
                                        NULL);
+  setup_dialog(dialog, toplevel);
   gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_YES);
   gtk_window_set_destroy_with_parent(GTK_WINDOW(dialog), TRUE);
 

Modified: trunk/client/gui-gtk-3.0/tileset_dlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.0/tileset_dlg.c?rev=30225&r1=30224&r2=30225&view=diff
==============================================================================
--- trunk/client/gui-gtk-3.0/tileset_dlg.c      (original)
+++ trunk/client/gui-gtk-3.0/tileset_dlg.c      Mon Oct 26 22:41:11 2015
@@ -17,11 +17,16 @@
 
 #include <gtk/gtk.h>
 
+/* utility */
 #include "fcintl.h"
 
+/* common */
 #include "game.h"
 #include "unitlist.h"
 
+/* client */
+#include "gui_main.h"
+#include "gui_stuff.h"
 #include "tilespec.h"
 
 #include "dialogs_g.h"
@@ -56,6 +61,7 @@
                                        _("Keep current tileset"),
                                        GTK_RESPONSE_NO,
                                        NULL);
+  setup_dialog(dialog, toplevel);
   gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_YES);
   gtk_window_set_destroy_with_parent(GTK_WINDOW(dialog), TRUE);
 


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

Reply via email to