Make the routines that manipulate the hex/text display window take a
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 5 Nov 2006 00:54:17 +0000 (00:54 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 5 Nov 2006 00:54:17 +0000 (00:54 +0000)
commit1f557995eae670144845a967408f0bb689867945
tree54ba360e4dec84fe41c6b6531ed0ce135bb1e192
parent23e15724939558ac0c10a9cda8e7dc1497dbfb9d
Make the routines that manipulate the hex/text display window take a
GtkWidget * as an argument, rather than a version-of-GTK+-dependent
pointer; that way, we need fewer #ifdefs.

Use WIDGET_SET_SIZE() instead of #ifdeffed code using
gtk_widget_set_usize() or gtk_widget_set_size_request() -
WIDGET_SET_SIZE() was created to encapsulate that GTK+ 1.2[.x] vs. 2.x
difference.

Make some variables not used outside gtk/main.c static.

Clean up white space.

Clean up handling of return value from load_airpcap() a bit.

Use one big #ifdef HAVE_AIRPCAP/#endif for all the AirPcap stuff in
gtk/main.c.

Attach _U_ to the unused arguments to driver_warning_dialog_cb(), not to
the arguments that are being used - and don't include it at all if
HAVE_AIRPCAP isn't defined, as it's not used in that case.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19798 f5534014-38df-0310-8fa8-9805f1628bb7
gtk/main.c
gtk/packet_win.c
gtk/proto_draw.c
gtk/proto_draw.h