Author: cazfi
Date: Wed Oct 28 21:16:29 2015
New Revision: 30293

URL: http://svn.gna.org/viewcvs/freeciv?rev=30293&view=rev
Log:
Removed dead city report Close button code from gtk-clients.

See patch #6487

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

Modified: branches/S2_6/client/gui-gtk-2.0/cityrep.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-2.0/cityrep.c?rev=30293&r1=30292&r2=30293&view=diff
==============================================================================
--- branches/S2_6/client/gui-gtk-2.0/cityrep.c  (original)
+++ branches/S2_6/client/gui-gtk-2.0/cityrep.c  Wed Oct 28 21:16:29 2015
@@ -1163,11 +1163,8 @@
   gtk_box_pack_end(GTK_BOX(city_dialog_shell->action_area),
                    city_total_buy_cost_label, TRUE, TRUE, 0);
 
-  gui_dialog_add_button(city_dialog_shell,
-                       GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
-
   gui_dialog_set_default_response(city_dialog_shell,
-                                 GTK_RESPONSE_CLOSE);
+                                  GTK_RESPONSE_CLOSE);
 
   /* tree view */
   buf = fc_realloc(buf, NUM_CREPORT_COLS * sizeof(buf[0]));

Modified: branches/S2_6/client/gui-gtk-3.0/cityrep.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-3.0/cityrep.c?rev=30293&r1=30292&r2=30293&view=diff
==============================================================================
--- branches/S2_6/client/gui-gtk-3.0/cityrep.c  (original)
+++ branches/S2_6/client/gui-gtk-3.0/cityrep.c  Wed Oct 28 21:16:29 2015
@@ -1155,9 +1155,6 @@
   gui_dialog_add_widget(city_dialog_shell, menubar);
 
   /* buttons */
-  gui_dialog_add_button(city_dialog_shell,
-                       GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
-
   city_total_buy_cost_label = gtk_label_new(NULL);
   gtk_widget_set_hexpand(city_total_buy_cost_label, TRUE);
   gtk_label_set_ellipsize(GTK_LABEL(city_total_buy_cost_label),
@@ -1178,7 +1175,7 @@
   city_center_command = w;
 
   gui_dialog_set_default_response(city_dialog_shell,
-                                 GTK_RESPONSE_CLOSE);
+                                  GTK_RESPONSE_CLOSE);
 
   /* tree view */
   buf = fc_realloc(buf, NUM_CREPORT_COLS * sizeof(buf[0]));


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

Reply via email to