Ticket #3172: listbox.diff

File listbox.diff, 453 bytes (added by szaszg, 11 years ago)
  • lib/widget/listbox.c

    diff --git a/lib/widget/listbox.c b/lib/widget/listbox.c
    index f411851..0d94a83 100644
    a b listbox_key (WListbox * l, int key) 
    352352static inline void 
    353353listbox_append_item (WListbox * l, WLEntry * e, listbox_append_t pos) 
    354354{ 
    355     if (l->list == NULL) 
     355    if (l->list == NULL) { 
    356356        l->list = g_queue_new (); 
     357        pos = LISTBOX_APPEND_AT_END; 
     358    } 
    357359 
    358360    switch (pos) 
    359361    {