Use macros instead of raw numbers for login type
[rofl0r-ixchat.git] / src / fe-gtk / gtkutil.h
blob9bf9e0589cc1cdd2e55f482c02bc047e9b73d6a6
1 #include <gtk/gtktreeview.h>
2 #include <gtk/gtktreemodel.h>
4 typedef void (*filereqcallback) (void *, char *file);
6 #define FRF_WRITE 1
7 #define FRF_MULTIPLE 2
8 #define FRF_ADDFOLDER 4
9 #define FRF_CHOOSEFOLDER 8
10 #define FRF_FILTERISINITIAL 16
11 #define FRF_NOASKOVERWRITE 32
13 void gtkutil_file_req (const char *title, void *callback, void *userdata, char *filter, int flags);
14 void gtkutil_destroy (GtkWidget * igad, GtkWidget * dgad);
15 GtkWidget *gtkutil_button (GtkWidget *box, char *stock, char *tip, void *callback,
16 void *userdata, char *labeltext);
17 void gtkutil_label_new (char *text, GtkWidget * box);
18 GtkWidget *gtkutil_entry_new (int max, GtkWidget * box, void *callback,
19 gpointer userdata);
20 GtkWidget *gtkutil_clist_new (int columns, char *titles[], GtkWidget * box,
21 int policy, void *select_callback,
22 gpointer select_userdata,
23 void *unselect_callback,
24 gpointer unselect_userdata, int selection_mode);
25 int gtkutil_clist_selection (GtkWidget * clist);
26 int gtkutil_clist_multiple_selection (GtkWidget * clist,
27 int ** rows, const int max_rows);
28 void add_tip (GtkWidget * wid, char *text);
29 void show_and_unfocus (GtkWidget * wid);
30 void gtkutil_set_icon (GtkWidget *win);
31 GtkWidget *gtkutil_window_new (char *title, char *role, int width, int height, int flags);
32 void gtkutil_copy_to_clipboard (GtkWidget *widget, GdkAtom selection,
33 const gchar *str);
34 GtkWidget *gtkutil_treeview_new (GtkWidget *box, GtkTreeModel *model,
35 GtkTreeCellDataFunc mapper, ...);
36 gboolean gtkutil_treemodel_string_to_iter (GtkTreeModel *model, gchar *pathstr, GtkTreeIter *iter_ret);
37 gboolean gtkutil_treeview_get_selected_iter (GtkTreeView *view, GtkTreeIter *iter_ret);
38 gboolean gtkutil_treeview_get_selected (GtkTreeView *view, GtkTreeIter *iter_ret, ...);