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