diff options
author | Sake Blok <sake@euronet.nl> | 2007-12-15 23:38:29 +0000 |
---|---|---|
committer | Sake Blok <sake@euronet.nl> | 2007-12-15 23:38:29 +0000 |
commit | 9a2d18d3869d494dfb4e2438aafa9bf502b459cb (patch) | |
tree | f3eb646c8ea9a260d1353cab196b86020dd3d3fe /gtk/menu.c | |
parent | 8f7d4aff962c86185d0e659f8ab8ffaabd46fbf5 (diff) |
Changes the name of the menu item "View/Reset Coloring" to
"View/Reset Coloring 1-10" and adds sensitivity to it so that
it will be greyed out when none of the temporary color filters
are used.
(as per discussion on wireshark-dev some time ago)
svn path=/trunk/; revision=23879
Diffstat (limited to 'gtk/menu.c')
-rw-r--r-- | gtk/menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/menu.c b/gtk/menu.c index b66d4b973e..8e7b132eb4 100644 --- a/gtk/menu.c +++ b/gtk/menu.c @@ -613,7 +613,7 @@ static GtkItemFactoryEntry menu_items[] = NULL, 0, "<Separator>",NULL), ITEM_FACTORY_STOCK_ENTRY("/View/Colorize Conversation/New Coloring Rule...", NULL, colorize_conversation_cb, 0, GTK_STOCK_SELECT_COLOR), - ITEM_FACTORY_ENTRY("/View/Reset Coloring", "<control>space", + ITEM_FACTORY_ENTRY("/View/Reset Coloring 1-10", "<control>space", colorize_conversation_cb, 255*256, NULL, NULL), ITEM_FACTORY_STOCK_ENTRY("/View/_Coloring Rules...", NULL, color_display_cb, 0, GTK_STOCK_SELECT_COLOR), @@ -2677,6 +2677,8 @@ set_menus_for_selected_packet(capture_file *cf) cf->current_frame != NULL); set_menu_sensitivity(main_menu_factory, "/View/Colorize Conversation", cf->current_frame != NULL); + set_menu_sensitivity(main_menu_factory, "/View/Reset Coloring 1-10", + tmp_color_filters_used()); set_menu_sensitivity(main_menu_factory, "/View/Show Packet in New Window", cf->current_frame != NULL); set_menu_sensitivity(packet_list_menu_factory, "/Show Packet in New Window", |