static void combo_selected(object_t *combo, event_t *event) { list_item_t *li = combo_get_selected(combo); if(li != 0) { int cursor = GPOINTER_TO_INT(g_hash_table_lookup(types, li->data[0])); widget_set_cursor(w, cursor); } }
static void combo_selected(object_t *combo, event_t *event) { list_item_t *li = combo_get_selected(combo); printf("%p\n", li); if(li != 0) { int cursor = hashtable_search(types, li->data[0]); widget_set_cursor(w, cursor); } }