blob: dec147fe717420928d57895f71e4b5f2a4e2cab6 [file] [log] [blame]
Jens Axboe53e0e852012-03-15 19:38:01 +01001#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 *create_spinbutton(GtkWidget *hbox, double min, double max, double defval);
8void label_set_int_value(GtkWidget *entry, unsigned int val);
9void entry_set_int_value(GtkWidget *entry, unsigned int val);
10
Jens Axboe49c34172012-03-16 12:05:17 +010011
12struct multitext_widget {
13 GtkWidget *entry;
14 char **text;
15 unsigned int cur_text;
16 unsigned int max_text;
17};
18
19void multitext_add_entry(struct multitext_widget *mt, const char *text);
20void multitext_set_entry(struct multitext_widget *mt, unsigned int index);
21void multitext_update_entry(struct multitext_widget *mt, unsigned int index,
22 const char *text);
23void 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
30GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title, unsigned int flags);
31
Jens Axboe53e0e852012-03-15 19:38:01 +010032#endif