Jens Axboe | 53e0e85 | 2012-03-15 19:38:01 +0100 | [diff] [blame] | 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 | |
Jens Axboe | 49c3417 | 2012-03-16 12:05:17 +0100 | [diff] [blame^] | 11 | |
| 12 | struct multitext_widget { |
| 13 | GtkWidget *entry; |
| 14 | char **text; |
| 15 | unsigned int cur_text; |
| 16 | unsigned int max_text; |
| 17 | }; |
| 18 | |
| 19 | void multitext_add_entry(struct multitext_widget *mt, const char *text); |
| 20 | void multitext_set_entry(struct multitext_widget *mt, unsigned int index); |
| 21 | void multitext_update_entry(struct multitext_widget *mt, unsigned int index, |
| 22 | const char *text); |
| 23 | void multitext_free(struct multitext_widget *mt); |
| 24 | |
| 25 | #define ALIGN_LEFT 1 |
| 26 | #define ALIGN_RIGHT 2 |
| 27 | #define INVISIBLE 4 |
| 28 | #define UNSORTABLE 8 |
| 29 | |
| 30 | GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title, unsigned int flags); |
| 31 | |
Jens Axboe | 53e0e85 | 2012-03-15 19:38:01 +0100 | [diff] [blame] | 32 | #endif |