1 /* 2 * This is a plug-in for GIMP. 3 * 4 * Generates clickable image maps. 5 * 6 * Copyright (C) 1998-2002 Maurits Rijk lpeek.mrijk@consunet.nl 7 * 8 * This program is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 3 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <https://www.gnu.org/licenses/>. 20 * 21 */ 22 23 #ifndef _IMAP_BROWSE_H 24 #define _IMAP_BROWSE_H 25 26 typedef gchar* (*BrowseFilter_t) (const gchar *, gpointer data); 27 28 typedef struct 29 { 30 const gchar *name; 31 BrowseFilter_t filter; 32 gpointer filter_data; 33 GtkWidget *hbox; 34 GtkWidget *file; 35 GtkWidget *button; 36 GtkWidget *file_chooser; 37 } BrowseWidget_t; 38 39 BrowseWidget_t * browse_widget_new (const gchar *name); 40 void browse_widget_set_filename (BrowseWidget_t *browse, 41 const gchar *filename); 42 void browse_widget_set_filter (BrowseWidget_t *browse, 43 BrowseFilter_t filter, 44 gpointer data); 45 46 #endif /* _IMAP_BROWSE_H */ 47