Enlightenment CVS committal

Author  : sndev
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_gadcon_config.c 


Log Message:

* no need to disable the "Add" button after the gadget was added. If I want 
consequently
add the same gadget more than once I need to do too much mouse acions.

* no need to disable the "Delete" button. The reasoning is the same.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_gadcon_config.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- e_int_gadcon_config.c       21 Jul 2006 17:28:15 -0000      1.26
+++ e_int_gadcon_config.c       3 Aug 2006 15:35:38 -0000       1.27
@@ -159,8 +159,6 @@
    _load_selected_gadgets(cfdata);
    e_widget_ilist_selected_set(cfdata->o_instances,
                               e_widget_ilist_count(cfdata->o_instances) - 1);
-   
-   e_widget_disabled_set(cfdata->o_add, 1);
 }
 
 static void
@@ -185,8 +183,16 @@
 
    _load_selected_gadgets(cfdata);
 
-   e_widget_disabled_set(cfdata->o_remove, 1);
-   
+   if (i >= evas_list_count(cfdata->cf_gc->clients)) 
+     i = evas_list_count(cfdata->cf_gc->clients) - 1;
+
+   if (i < 0) 
+     e_widget_disabled_set(cfdata->o_remove, 1);
+   else
+     { 
+       e_widget_ilist_selected_set(cfdata->o_instances, i); 
+       e_widget_disabled_set(cfdata->o_remove, 0);
+     }
    e_gadcon_unpopulate(cfdata->gc);
    e_gadcon_populate(cfdata->gc);
    e_config_save_queue();



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to