Commit graph

23 commits

Author SHA1 Message Date
Jeff Morriss
be611615f8 From Florent Drouin via http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2015 : fix crash when editing UAT tables
svn path=/trunk/; revision=23604
2007-11-26 18:00:21 +00:00
Bill Meier
fc162617f4 enable esc for new/edit/delete dialogs; remove some redundant code;
svn path=/trunk/; revision=22782
2007-09-04 12:37:19 +00:00
Bill Meier
30b61b7540 Fix my previous patch to enable esc on window
svn path=/trunk/; revision=22772
2007-09-02 23:37:40 +00:00
Bill Meier
d5b126a552 Enable <esc> to cancel window; remove some redundant code
svn path=/trunk/; revision=22763
2007-08-31 23:22:45 +00:00
Luis Ontanon
c22f70ec1b - epan/uat.h: change the UAT_PROTO_DEF macro to handle both the name of the dissector and the handle
- packet-user_encap.c: use the new UAT_PROTO_DEF
- gtk/uat_gui.c:  change the order of "containment" of the widgets to have the clist fields sized to the scrolledwindow instead of the whole window


svn path=/trunk/; revision=21934
2007-05-25 16:47:22 +00:00
Guy Harris
1bc049906a Add some GCC warnings to the standard set, and add some others to the
--enable-extra-gcc-checks set.

If we turn on -pedantic, try turning on -Wno-long-long as well, so that
it's not *so* pedantic that it rejects the 64-bit integral data types
that we explicitly require.

Constify a bunch of stuff, and make some other changes, to get rid of
warnings.

Clean up some indentation.

svn path=/trunk/; revision=21526
2007-04-23 10:59:26 +00:00
Luis Ontanon
4b4d4fed2a protect callbacks of derived windows from dereferencing a null pointer if the main table has being closed in the meanwhile.
svn path=/trunk/; revision=20970
2007-03-04 02:27:11 +00:00
Luis Ontanon
a2a25e7586 revert (most) changes in rev #20753, to avoid items being created on a wrong menu on windows.
svn path=/trunk/; revision=20928
2007-02-25 18:03:05 +00:00
Guy Harris
29755e2a35 Squelch a "used without being set" warning.
svn path=/trunk/; revision=20848
2007-02-19 01:21:10 +00:00
Luis Ontanon
c63b0a6bc6 From Peter Johansson:
I have provided a patch for a crash that occurs in uat_gui.c if from the
"Edit preferences..." button when you choose Protocols -> DLT_USER ->
the "Edit..." button -> the "New" button -> the "Cancel" button.
The crash happens because dd gets freed prior to traversing its internal
structure, hence I moved the call to g_free for dd beneath the traversal
of the dd internals.



svn path=/trunk/; revision=20813
2007-02-14 19:21:37 +00:00
Luis Ontanon
b26c1c4ca2 Add a description of UAT fields, and have it as a tooltip in the New/Edit Dialog.
svn path=/trunk/; revision=20797
2007-02-12 19:57:41 +00:00
Luis Ontanon
5db2005993 Have Aply, Cancel and OK buttons instead of the save and ok button.
Have these buttons reloading the capture file if needed.
Some rearrangement of the window (the editor is still missing "ornaments" and tooltips)


svn path=/trunk/; revision=20788
2007-02-11 16:09:21 +00:00
Luis Ontanon
7c57c05ed5 * Add a Submenu (/Views/User Tables) where UATs can be accessed.
* Remove macros_dlg, the DFMacros UAT goes in the menu with all the rest
* in packet-user_encap.c WTAP_ENCAP=XXX has become useless information for the user leave just the DLT#



svn path=/trunk/; revision=20753
2007-02-09 03:11:14 +00:00
Luis Ontanon
5ec87e6eef no gtk_window_set_resizable in GTK1
svn path=/trunk/; revision=20735
2007-02-07 13:55:34 +00:00
Luis Ontanon
bc2ca61083 Add ENUM and HEXBYTES modes
svn path=/trunk/; revision=20733
2007-02-07 03:39:40 +00:00
Luis Ontanon
2b22bcb1a3 * Add a help facility for UATs
* export help_topic_html()


svn path=/trunk/; revision=20717
2007-02-05 05:06:21 +00:00
Luis Ontanon
b7a16926d7 Add a confirm dialog when the user closes the window with unsaved data.
svn path=/trunk/; revision=20716
2007-02-05 04:22:06 +00:00
Luis Ontanon
fbc8912b87 Move (Up/Down) & Save buttons
svn path=/trunk/; revision=20708
2007-02-04 05:19:02 +00:00
Luis Ontanon
d70a58f881 second iteration:
* fields of an uat table now are passed using an array of uat_filed_t
* field callbacks take two more userdata arguments
* add some macros to define uat field callbacks.
* uats can be registered as preferences for a specific protocol
   - the preference widget is a button that opens the uat's window
* dfilter-macro => reflect changes to API


svn path=/trunk/; revision=20695
2007-02-03 14:25:02 +00:00
Ulf Lamping
e9dd661b18 use window_present() as discussed
svn path=/trunk/; revision=20639
2007-01-31 03:05:03 +00:00
Ulf Lamping
99209b76ce call gtk_window_present() only on GTK >= 2.x, should fix current compilation problems.
I don't have tested this on a GTK 1.x system...

svn path=/trunk/; revision=20615
2007-01-29 23:29:11 +00:00
Luis Ontanon
3e924d9def Finish (?) UAT's GUI
svn path=/trunk/; revision=20605
2007-01-29 14:14:01 +00:00
Luis Ontanon
8f48cb6364 Actually this is the UAT GUI...
svn path=/trunk/; revision=20599
2007-01-29 10:25:54 +00:00