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

misc.h

Go to the documentation of this file.
00001 /*
00002  * $Id: misc.h,v 1.6 2005/11/16 12:53:48 cbiere Exp $
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 
00040 /*
00041  * Hit record comparison functions.
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 /* USE_GTK2 */
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 /* USE_GTK1 */
00064 
00065 void paned_save_position(GtkPaned *paned, property_t prop);
00066 void paned_restore_position(GtkPaned *paned, property_t prop);
00067 
00068 #endif /* _gtk_misc_h_ */

Generated on Sun Feb 12 10:49:56 2006 for Gtk-Gnutella by doxygen 1.3.6