31 #ifndef GNC_GENERAL_SELECT_H 32 #define GNC_GENERAL_SELECT_H 38 #define GNC_TYPE_GENERAL_SELECT (gnc_general_select_get_type ()) 39 #define GNC_GENERAL_SELECT(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gnc_general_select_get_type(), GNCGeneralSelect) 40 #define GNC_GENERAL_SELECT_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gnc_general_select_get_type(), \ GNCGeneralSelectClass) 41 #define GNC_IS_GENERAL_SELECT(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gnc_general_select_get_type ()) 43 typedef const char * (*GNCGeneralSelectGetStringCB) (gpointer);
44 typedef gpointer (*GNCGeneralSelectNewSelectCB) (gpointer cbarg, gpointer default_selection, GtkWidget *parent);
48 GNC_GENERAL_SELECT_TYPE_SELECT = 1,
49 GNC_GENERAL_SELECT_TYPE_EDIT = 2,
50 GNC_GENERAL_SELECT_TYPE_VIEW = 3
51 } GNCGeneralSelectType;
60 gpointer selected_item;
62 GNCGeneralSelectGetStringCB get_string;
63 GNCGeneralSelectNewSelectCB new_select;
71 GtkBoxClass parent_class;
77 GtkWidget *gnc_general_select_new (GNCGeneralSelectType type,
78 GNCGeneralSelectGetStringCB get_string,
79 GNCGeneralSelectNewSelectCB new_select,
86 GType gnc_general_select_get_type (
void);
88 void gnc_general_select_make_mnemonic_target (
GNCGeneralSelect *gsl, GtkWidget *label);