Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

ui/gtk/misc.h

Go to the documentation of this file.
00001 /*
00002  * $Id: misc.h 11876 2006-09-05 18:24:29Z cbiere $
00003  *
00004  * Copyright (c) 2001-2004, Raphael Manfredi, Richard Eckart
00005  *
00006  *----------------------------------------------------------------------
00007  * This file is part of gtk-gnutella.
00008  *
00009  *  gtk-gnutella is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  gtk-gnutella is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with gtk-gnutella; if not, write to the Free Software
00021  *  Foundation, Inc.:
00022  *      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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 gint gui_parse_geometry_spec(const gchar *spec, guint32 coord[4]);
00040 
00041 /*
00042  * Hit record comparison functions.
00043  */
00044 
00045 gint gui_record_name_eq(gconstpointer rec1, gconstpointer rec2);
00046 gint gui_record_sha1_eq(gconstpointer rec1, gconstpointer rec2);
00047 gint gui_record_host_eq(gconstpointer rec1, gconstpointer rec2);
00048 gint gui_record_sha1_or_name_eq(gconstpointer rec1, gconstpointer rec2);
00049 
00050 #ifdef USE_GTK2
00051 void gui_merge_window_as_tab(GtkWidget *toplvl, GtkWidget *notebook,
00052     GtkWidget *window);
00053 gboolean tree_find_iter_by_data(GtkTreeModel *model, guint column,
00054     gconstpointer data, GtkTreeIter *iter);
00055 void tree_view_save_widths(GtkTreeView *treeview, property_t prop);
00056 void tree_view_save_visibility(GtkTreeView *treeview, property_t prop);
00057 void tree_view_restore_visibility(GtkTreeView *treeview, property_t prop);
00058 void tree_view_restore_widths(GtkTreeView *treeview, property_t prop);
00059 #endif /* USE_GTK2 */
00060 
00061 #ifdef USE_GTK1
00062 void gtk_clist_save_visibility(GtkCList *clist, property_t prop);
00063 void gtk_clist_restore_visibility(GtkCList *clist, property_t prop);
00064 #endif /* USE_GTK1 */
00065 
00066 void paned_save_position(GtkPaned *paned, property_t prop);
00067 void paned_restore_position(GtkPaned *paned, property_t prop);
00068 
00069 #endif /* _gtk_misc_h_ */

Generated on Sat Jun 30 17:53:23 2007 for gtk-gnutella by  doxygen 1.3.9.1