1#ifndef GFIO_HELPERS_H 2#define GFIO_HELPERS_H 3 4GtkWidget *new_combo_entry_in_frame(GtkWidget *box, const char *label); 5GtkWidget *new_info_entry_in_frame(GtkWidget *box, const char *label); 6GtkWidget *new_info_label_in_frame(GtkWidget *box, const char *label); 7GtkWidget *new_info_entry_in_frame_rgb(GtkWidget *box, const char *label, 8 gfloat r, gfloat g, gfloat b); 9GtkWidget *create_spinbutton(GtkWidget *hbox, double min, double max, double defval); 10void label_set_int_value(GtkWidget *entry, unsigned int val); 11void entry_set_int_value(GtkWidget *entry, unsigned int val); 12 13GtkWidget *get_scrolled_window(gint border_width); 14 15struct multitext_widget { 16 GtkWidget *entry; 17 char **text; 18 unsigned int cur_text; 19 unsigned int max_text; 20}; 21 22void multitext_add_entry(struct multitext_widget *mt, const char *text); 23void multitext_set_entry(struct multitext_widget *mt, unsigned int index); 24void multitext_update_entry(struct multitext_widget *mt, unsigned int index, 25 const char *text); 26void multitext_free(struct multitext_widget *mt); 27 28#define ALIGN_LEFT 1 29#define ALIGN_RIGHT 2 30#define INVISIBLE 4 31#define UNSORTABLE 8 32 33GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title, unsigned int flags); 34 35#endif 36