41 gtk_widget_set_sensitive(GTK_WIDGET(g), (value==0)?FALSE:TRUE);
45 gtk_widget_grab_focus(GTK_WIDGET(g));
49 gtk_combo_box_set_active(GTK_COMBO_BOX(g), value);
55 store=GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(g)));
57 gtk_list_store_clear(store);
68 "Function is not appropriate for this type of widget (%s)",
89 return (gtk_widget_get_sensitive(GTK_WIDGET(g))==TRUE)?1:0;
92 return (gtk_widget_has_focus(GTK_WIDGET(g))==TRUE)?1:0;
98 i=gtk_combo_box_get_active(GTK_COMBO_BOX(g));
109 store=GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(g)));
111 i=gtk_tree_model_iter_n_children(GTK_TREE_MODEL(store),
NULL);
120 "Function is not appropriate for this type of widget (%s)",
153 store=GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(g)));
156 gtk_list_store_append(store, &iter);
157 gtk_list_store_set(store, &iter, 0, value, -1);
165 store=GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(g)));
167 gtk_list_store_clear(store);
177 "Function is not appropriate for this type of widget (%s)",
188 const char *defaultValue)
216 "Function is not appropriate for this type of widget (%s)",
262 wParent=GWEN_Widget_Tree_GetParent(w);
265 store=gtk_list_store_new(1, G_TYPE_STRING);
267 g=gtk_combo_box_new_with_model(GTK_TREE_MODEL(store));
270 g=gtk_combo_box_new_with_model_and_entry(GTK_TREE_MODEL(store));
271 gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(g), 0);
273 g_object_unref(store);
277 cr=gtk_cell_renderer_text_new();
278 gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(g), cr, TRUE);
279 gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(g), cr,
"text", 0,
NULL);
#define DBG_WARN(dbg_logger, format,...)
int GWEN_Dialog_EmitSignal(GWEN_DIALOG *dlg, GWEN_DIALOG_EVENTTYPE t, const char *sender)
#define GWEN_WIDGET_FLAGS_READONLY
@ GWEN_DialogProperty_AddValue
@ GWEN_DialogProperty_ValueCount
@ GWEN_DialogProperty_ClearValues
@ GWEN_DialogProperty_Enabled
@ GWEN_DialogProperty_Value
@ GWEN_DialogProperty_Focus
@ GWEN_DialogEvent_TypeActivated
@ GWEN_DialogEvent_ResultAccept
@ GWEN_DialogEvent_ResultReject
#define GWEN_ERROR_INVALID
static void changed_handler(GWEN_UNUSED GtkWidget *comboBox, gpointer data)
static void GWENHYWFAR_CB Gtk3Gui_WComboBox_FreeData(GWEN_UNUSED void *bp, void *p)
static GWENHYWFAR_CB int Gtk3Gui_WComboBox_SetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, int value, GWEN_UNUSED int doSignal)
static void changed_handler(GWEN_UNUSED GtkWidget *comboBox, gpointer data)
static GWENHYWFAR_CB int Gtk3Gui_WComboBox_GetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, int defaultValue)
static GWENHYWFAR_CB const char * Gtk3Gui_WComboBox_GetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
int Gtk3Gui_WComboBox_Setup(GWEN_WIDGET *w)
static GWENHYWFAR_CB int Gtk3Gui_WComboBox_SetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, const char *value, GWEN_UNUSED int doSignal)
#define GTK3_DIALOG_WIDGET_CONTENT
#define GTK3_DIALOG_WIDGET_REAL
void Gtk3Gui_ApplyFlags(GtkWidget *g, uint32_t flags)
void Gtk3Gui_Dialog_Leave(GWEN_DIALOG *dlg, int result)
#define GWEN_INHERIT_SETDATA(bt, t, element, data, fn)
#define GWEN_INHERIT(bt, t)
#define GWEN_INHERIT_GETDATA(bt, t, element)
#define GWEN_FREE_OBJECT(varname)
#define GWEN_NEW_OBJECT(typ, varname)
void GWEN_StringList_free(GWEN_STRINGLIST *sl)
void GWEN_StringList_Clear(GWEN_STRINGLIST *sl)
int GWEN_StringList_AppendString(GWEN_STRINGLIST *sl, const char *s, int take, int checkDouble)
const char * GWEN_StringList_StringAt(const GWEN_STRINGLIST *sl, int idx)
GWEN_STRINGLIST * GWEN_StringList_new(void)
struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST
GWEN_STRINGLIST * entries