00001 /* 00002 * $Id: visual_progress.h,v 1.4 2005/06/29 14:24:28 daichik Exp $ 00003 * 00004 * Copyright (c) 2003-2004, Hans de Graaff 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 00036 #ifndef _gtk_visual_progress_h_ 00037 #define _gtk_visual_progress_h_ 00038 00039 #include "gui.h" 00040 #include "if/core/fileinfo.h" 00041 00042 /* 00043 * General entry points for the control. 00044 */ 00045 void vp_gui_init(void); 00046 void vp_gui_shutdown(void); 00047 00051 void vp_draw_fi_progress(gboolean valid, gnet_fi_t fih); 00052 00053 00054 /* 00055 * Glade-generated callbacks. 00056 */ 00057 void 00058 on_drawingarea_fi_progress_realize (GtkWidget *widget, 00059 gpointer user_data); 00060 00061 gboolean 00062 on_drawingarea_fi_progress_configure_event 00063 (GtkWidget *widget, 00064 GdkEventConfigure *event, 00065 gpointer user_data); 00066 00067 gboolean 00068 on_drawingarea_fi_progress_expose_event 00069 (GtkWidget *widget, 00070 GdkEventExpose *event, 00071 gpointer user_data); 00072 00073 #endif /* _gtk_visual_progress_h_ */