<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39931 >

This is deprecated in recent GTKs and doesn't seem to be needed.  It's
easily replaced.

Patch was made for 2.1 but we probably only need it for trunk.

-jason


Index: client/gui-gtk-2.0/cityrep.c
===================================================================
--- client/gui-gtk-2.0/cityrep.c	(revision 14095)
+++ client/gui-gtk-2.0/cityrep.c	(working copy)
@@ -214,7 +214,6 @@
     ""
   };
 
-  gtk_menu_item_remove_submenu(parent_item);
   menu = gtk_menu_new();
   gtk_menu_item_set_submenu(parent_item, menu);
 
@@ -536,7 +535,7 @@
   struct cm_parameter parameter;
   GtkWidget *w;
 
-  gtk_menu_item_remove_submenu(parent_item);
+  gtk_menu_item_set_submenu(parent_item, NULL);
   if (!can_client_issue_orders()) {
     return;
   }

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

Reply via email to