Move a bunch of toolbar routines into main_toolbar_private.h; they

should only be called by the main window code.

svn path=/trunk/; revision=43299
This commit is contained in:
Guy Harris 2012-06-17 00:06:13 +00:00
parent 480e2c351b
commit 5237a5efa2
2 changed files with 28 additions and 28 deletions

View File

@ -32,37 +32,9 @@
* @ingroup main_window_group
*/
/** Create the main toolbar.
* @return the new toolbar
*/
GtkWidget *toolbar_new(void);
/** Redraw the main toolbar. Used, when user changes preferences. */
void toolbar_redraw_all(void);
/** We have (or don't have) a capture in progress now.
*
* @param have_capture_file TRUE, if we have a capture in progress file
*/
void set_toolbar_for_capture_in_progress(gboolean have_capture_file);
/** The capture is in the process of being stopped.
*/
void set_toolbar_for_capture_stopping(void);
/** We have (or don't have) captured packets now.
*
* @param have_captured_packets TRUE, if we have captured packets
*/
void set_toolbar_for_captured_packets(gboolean have_captured_packets);
/** The packet history has changed, we need to update the menu.
*
* @param back_history some back history entries available
* @param forward_history some forward history entries available
*/
void set_toolbar_for_packet_history(gboolean back_history, gboolean forward_history);
/** Set object data of some buttons (where needed). It's needed so callback
* functions can read back their required data. Acts like g_object_set_data()
* on multiple buttons.

View File

@ -26,6 +26,34 @@
/*** PRIVATE INTERFACE BETWEEN main.c AND main_toolbar.c DON'T USE OR TOUCH :-)*/
/** Create the main toolbar.
* @return the new toolbar
*/
GtkWidget *toolbar_new(void);
/** We have (or don't have) a capture in progress now.
*
* @param have_capture_file TRUE, if we have a capture in progress file
*/
void set_toolbar_for_capture_in_progress(gboolean have_capture_file);
/** The capture is in the process of being stopped.
*/
void set_toolbar_for_capture_stopping(void);
/** We have (or don't have) captured packets now.
*
* @param have_captured_packets TRUE, if we have captured packets
*/
void set_toolbar_for_captured_packets(gboolean have_captured_packets);
/** The packet history has changed, we need to update the menu.
*
* @param back_history some back history entries available
* @param forward_history some forward history entries available
*/
void set_toolbar_for_packet_history(gboolean back_history, gboolean forward_history);
/** The "Colorize Packet List" option has changed.
*/
void toolbar_colorize_changed(gboolean packet_list_colorize);