00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _gtk_misc_h_
00027 #define _gtk_misc_h_
00028
00029 #include "gui.h"
00030 #include "if/ui/gtk/misc.h"
00031 #include "lib/prop.h"
00032
00033 void gui_general_timer(time_t now);
00034 void gui_update_traffic_stats(void);
00035 void gui_update_stats_frames(void);
00036 void gui_fix_coords(guint32 *coord);
00037 void gui_save_window(GtkWidget *widget, property_t prop);
00038 void gui_restore_window(GtkWidget *widget, property_t prop);
00039
00040
00041
00042
00043
00044 gint gui_record_name_eq(gconstpointer rec1, gconstpointer rec2);
00045 gint gui_record_sha1_eq(gconstpointer rec1, gconstpointer rec2);
00046 gint gui_record_host_eq(gconstpointer rec1, gconstpointer rec2);
00047 gint gui_record_sha1_or_name_eq(gconstpointer rec1, gconstpointer rec2);
00048
00049 #ifdef USE_GTK2
00050 void gui_merge_window_as_tab(GtkWidget *toplvl, GtkWidget *notebook,
00051 GtkWidget *window);
00052 gboolean tree_find_iter_by_data(GtkTreeModel *model, guint column,
00053 gconstpointer data, GtkTreeIter *iter);
00054 void tree_view_save_widths(GtkTreeView *treeview, property_t prop);
00055 void tree_view_save_visibility(GtkTreeView *treeview, property_t prop);
00056 void tree_view_restore_visibility(GtkTreeView *treeview, property_t prop);
00057 void tree_view_restore_widths(GtkTreeView *treeview, property_t prop);
00058 #endif
00059
00060 #ifdef USE_GTK1
00061 void gtk_clist_save_visibility(GtkCList *clist, property_t prop);
00062 void gtk_clist_restore_visibility(GtkCList *clist, property_t prop);
00063 #endif
00064
00065 void paned_save_position(GtkPaned *paned, property_t prop);
00066 void paned_restore_position(GtkPaned *paned, property_t prop);
00067
00068 #endif