aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.h
diff options
context:
space:
mode:
authorSake Blok <sake@euronet.nl>2007-11-24 11:38:16 +0000
committerSake Blok <sake@euronet.nl>2007-11-24 11:38:16 +0000
commit9b6f806089352b60a724767a47391d6854f99c6a (patch)
tree0944b3a1a037c65b5da06485b6aeb5312073d56e /gtk/main.h
parent5018f190e547853a684fb6a2bbcf4d00fb3e9264 (diff)
downloadwireshark-9b6f806089352b60a724767a47391d6854f99c6a.tar.gz
wireshark-9b6f806089352b60a724767a47391d6854f99c6a.tar.bz2
wireshark-9b6f806089352b60a724767a47391d6854f99c6a.zip
This patch adds (ten) temporary coloring rules which will only live until Wireshark is
quit. Temporary coloring filters can be set by: - pressing <ctrl>-<digit> will create a conversation coloring filter based on the addresses of the currently selected packet (order TCP/UDP/IP/Ethernet) This can also be achieved from the "View|Colorize Conversation" menu. - Rightclicking on a packet in the packet-list will give the option to "Colorize Conversation" just as "Conversation Filter" does. - Rightclicking on an item in the packet-detail-list will give the option to "Colorize with filter" which works similar to "Apply as filter" Temporary filters can be cleared from the same menus or by pressing <ctrl>-<space>. This patch also adds an item to the above mentioned menu's to add a permanent color filter in the same way. The colors for the temporary coloring rules are now hardcoded as I do not know how to change the color of menu-items and therefore I chose to use icons to show the actual color of each of the ten temporary coloring rules. Is it at all possible to have different menu items in different colors? One other way of solving this is to recreate the icons on the fly after changing the colors. I will have a look into that once it is clear whether I can use different colors within the menu structure. svn path=/trunk/; revision=23560
Diffstat (limited to 'gtk/main.h')
-rw-r--r--gtk/main.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/main.h b/gtk/main.h
index 76694bdf8f..fdb9b8540f 100644
--- a/gtk/main.h
+++ b/gtk/main.h
@@ -145,6 +145,17 @@ extern void copy_selected_plist_cb(GtkWidget *w _U_, gpointer data);
*/
extern void match_selected_ptree_cb(GtkWidget *widget, gpointer data, MATCH_SELECTED_E action);
+/** User requested the colorize function
+ * by menu or context menu of protocol tree.
+ *
+ * @param widget parent widget
+ * @param data parent widget
+ * @param filt_nr 1-10: use filter for color 1-10
+ * 0: open new colorization rule dialog
+ * 255: clear filters for color 1-10
+ */
+extern void colorize_selected_ptree_cb(GtkWidget *w, gpointer data, guint8 filt_nr);
+
/** User requested one of "Apply as Filter" or "Prepare a Filter" functions
* by context menu of packet list.
*