Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2005:
[Freeciv-Dev] (PR#12212) toggle city outlines in the menu
Home

[Freeciv-Dev] (PR#12212) toggle city outlines in the menu

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12212) toggle city outlines in the menu
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Feb 2005 21:33:24 -0800
Reply-to: bugs@xxxxxxxxxxx

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

This patch adds a few missing bits that lets the city outlines be 
toggled in the menu.

However it still needs a shortcut.

-jason

Index: client/gui-gtk-2.0/menu.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/menu.c,v
retrieving revision 1.64
diff -u -r1.64 menu.c
--- client/gui-gtk-2.0/menu.c   10 Feb 2005 10:05:03 -0000      1.64
+++ client/gui-gtk-2.0/menu.c   11 Feb 2005 05:32:25 -0000
@@ -733,6 +733,8 @@
        NULL,                   0,                                      
"<Branch>"      },
   { "/" N_("View") "/tearoff1",                                NULL,
        NULL,                   0,                                      
"<Tearoff>"     },
+  { "/" N_("View") "/" N_("City Outlines"), NULL,
+    view_menu_callback, MENU_VIEW_SHOW_CITY_OUTLINES, "<CheckItem>"},
   { "/" N_("View") "/" N_("Map _Grid"),                        "<control>g",
        view_menu_callback,     MENU_VIEW_SHOW_MAP_GRID,                
"<CheckItem>"   },
   { "/" N_("View") "/" N_("National _Borders"),                "<control>b",
@@ -1286,6 +1288,7 @@
     menus_set_sensitive("<main>/_Reports/S_paceship",
                        (game.player_ptr->spaceship.state!=SSHIP_NONE));
 
+    menus_set_active("<main>/_View/City Outlines", draw_city_outlines);
     menus_set_active("<main>/_View/Map _Grid", draw_map_grid);
     menus_set_sensitive("<main>/_View/National _Borders", game.borders > 0);
     menus_set_active("<main>/_View/National _Borders", draw_borders);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12212) toggle city outlines in the menu, Jason Short <=