If it's good enough for ilist, it's good enough for tlist.
authorDavid Walter Seikel <onefang@gmail.com>
Sat, 4 Mar 2006 15:10:31 +0000 (15:10 +0000)
committerDavid Walter Seikel <onefang@gmail.com>
Sat, 4 Mar 2006 15:10:31 +0000 (15:10 +0000)
SVN revision: 21007

src/bin/e_tlist.c
src/bin/e_widget_tlist.c

index 9360b01..8a37cce 100644 (file)
@@ -241,6 +241,8 @@ e_tlist_remove_num(Evas_Object * obj, int n)
    if (si)
      {
        sd->items = evas_list_remove(sd->items, si);
+       if (e_tlist_selected_get(obj) == n)
+          sd->selected = -1;
        evas_object_del(si->base_obj);
        free(si);
      }
index 07f6927..d501e78 100644 (file)
@@ -190,6 +190,8 @@ _e_widget_tlist_append(Evas_Object * obj, char *label,
        e_widget_min_size_get(obj, &wmw, &wmh);
        e_widget_min_size_set(obj, mw + (w - vw), wmh);
      }
+   else if (mw < vw)
+      evas_object_resize(wd->o_tlist, vw, mh);
 }
 
 static void