(trunk gtk) add utility function for creating a combobox that shows the values of an enum list

This commit is contained in:
Charles Kerr
2010-07-23 06:54:49 +00:00
parent 6024ea7fa6
commit 59e8e02af2
4 changed files with 94 additions and 230 deletions

View File

@@ -168,11 +168,13 @@ GtkWidget * gtr_button_new_from_stock( const char * stock,
****
***/
void gtr_priority_combo_set_value( GtkWidget * w, tr_priority_t );
tr_priority_t gtr_priority_combo_get_value( GtkWidget * w );
GtkWidget * gtr_priority_combo_new( void );
#define gtr_priority_combo_get_value(w) gtr_combo_box_get_active_val(w)
#define gtr_priority_combo_set_value(w,val) gtr_combo_box_set_active_val(w,val)
GtkWidget * gtr_combo_box_new_enum( const char * text_1, ... );
int gtr_combo_box_get_active_val( GtkWidget * w );
void gtr_combo_box_set_active_val( GtkWidget * w, int value );
/***
****