Commit Graph

38 Commits

Author SHA1 Message Date
Bill Meier 56206e0002 Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_container_border_width()          ==> gtk_container_set_border_width()
  gtk_container_children()              ==> gtk_container_get_children()
  gtk_entry_new_with_max_length()       ==> gtk_entry_new(); gtk_entry_set_max_length()
  gtk_menu_append()                     ==> gtk_menu_shell_append()
  gtk_menu_prepend()                    ==> gtk_menu_shell_prepend()
  gtk_notebook_set_page()               ==> gtk_notebook_set_current_page()
  gtk_paned_gutter_size()               ==> gtk_paned_set_gutter_size()
  gtk_radio_button_group()              ==> gtk_radio_button_get_group()
  gtk_signal_connect()                  ==> g_signal_connect()
  gtk_signal_disconnect()               ==> g_signal_handler_disconnect()
  gtk_signal_emit_by_name()             ==> g_signal_emit_by_name()
  gtk_signal_handler_block_by_data()    ==> g_signal_handlers_block_matched()
  gtk_signal_handler_block_by_func()    ==> g_signal_handlers_block_by_func()
  gtk_signal_handler_unblock_by_data()  ==> g_signal-handlers_unblock_matched()
  gtk_signal_handler_unblock_by_func()  ==> g_signal-handlers_unblock_by_func()
  gtk_spin_button_get_value_as_float()  ==> gtk_spin_button_get_value()
  gtk_toggle_button_set_state()         ==> gtk_toggle_button_set_active()

svn path=/trunk/; revision=25634
2008-06-29 15:51:43 +00:00
Anders Broman b6454e76ac Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25244
2008-05-06 05:50:31 +00:00
Sake Blok a287b0f3f5 From Jim Young (bug 2212):
Add the profile name to the title of all the configuration windows.
(this is a rewrite of Jim's patch)


svn path=/trunk/; revision=25016
2008-04-14 15:01:34 +00:00
Ulf Lamping 644a474c95 sort #includes by directories
svn path=/trunk/; revision=24969
2008-04-13 03:32:24 +00:00
Ulf Lamping b51da2eb77 rename menu -> main_menu
remove old (and unused and confusing) ../menu.h

svn path=/trunk/; revision=24947
2008-04-12 19:18:26 +00:00
Ulf Lamping 55c2be83db move stock icon code from toolbar.c into specific stock_icons file(s)
svn path=/trunk/; revision=24921
2008-04-12 00:49:20 +00:00
Ulf Lamping 8e58ec7085 last round to replace SIGNAL_CONNECT with g_signal_connect
svn path=/trunk/; revision=24918
2008-04-11 23:16:06 +00:00
Ulf Lamping 1f4b5e5f07 replace SIGNAL_DISCONNECT_BY_FUNC with g_signal_handlers_disconnect_by_func
svn path=/trunk/; revision=24911
2008-04-11 20:34:30 +00:00
Ulf Lamping ae5f841083 replace all appearances of BUTTON_NEW_FROM_STOCK with GTK2's gtk_button_new_from_stock
svn path=/trunk/; revision=24904
2008-04-11 18:58:19 +00:00
Bill Meier ab9c1b68fd OBJECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24899
2008-04-11 17:26:09 +00:00
Stephen Fisher e462fe69d5 Remove an unused function that is causing a warning/error on Unix
svn path=/trunk/; revision=24864
2008-04-09 06:09:07 +00:00
Ulf Lamping e01e158045 remove GTK1 code
svn path=/trunk/; revision=24857
2008-04-09 05:01:03 +00:00
Stephen Fisher 726a1caaf1 - Remove GLIB1 code
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION
- Remove ws_strsplit files because we no longer need to borrow GLIB2's
  g_strsplit code for the no longer supported GLIB1 builds


svn path=/trunk/; revision=24829
2008-04-07 05:22:54 +00:00
Jaap Keuter 56222aed0e Fix for bug 1920:
Avoid double free, causing crash, and stop memory leak via normal code path.

svn path=/trunk/; revision=24152
2008-01-21 07:35:16 +00:00
Jaap Keuter d3e52cc1fe Cleanup the whitespace.
svn path=/trunk/; revision=24137
2008-01-19 07:46:52 +00:00
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