예제 #1
0
파일: cursor.c 프로젝트: theojulienne/Claro
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);    
    }               
}
예제 #2
0
파일: cursor.c 프로젝트: Airr/Claro
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);    
    }               
}