I am trying to create a new preference under Edit -> Preferences -> User Interface. I can create the text field, but when I fill it with text nothing else happens. When I click apply or ok, and reopen the window, the text is gone. When I grep through the .wireshark/preferences file, I don't see the value I entered. I have made the following changes to ui/gtk/prefs_gui.c
Did I miss something with what I tried? My ultimate goal is to have the new preference pass in a string that will be sent to a few different dissectors. asked 24 Nov '15, 11:31 0xbismarck |
One Answer:
Had to play with the code a while, but I finally figured it out. Here is the list of changes I had to make to get it to write to file and show up in the GUI. epan/prefs.h in e_prefs add:
epan/prefs.c
ui/gtk/pref_gui.c
within gui_prefs_show() GtkWidget *my_test_path_te;
within gui_prefs_fetch():
answered 25 Nov ‘15, 14:56 0xbismarck |