Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_exehist.c 


Log Message:


limit hist to 500 - it seems i had some incredibly huge history file and it
was causign my e to pause often... :)

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_exehist.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_exehist.c 25 Mar 2007 18:20:07 -0000      1.9
+++ e_exehist.c 10 Nov 2007 23:37:35 -0000      1.10
@@ -303,7 +303,32 @@
 {
    /* go from first item in hist on and either delete all items before a
     * specific timestamp, or if the list count > limit then delete items
+    * 
+    * for now - limit to 500
     */
+   if (_e_exehist)
+     {
+       while (evas_list_count(_e_exehist->history) > 500)
+         {
+            E_Exehist_Item *ei;
+            
+            ei = _e_exehist->history->data;
+            if (ei->exe) evas_stringshare_del(ei->exe);
+            if (ei->launch_method) evas_stringshare_del(ei->launch_method);
+            free(ei);
+            _e_exehist->history = evas_list_remove_list(_e_exehist->history, 
_e_exehist->history);
+         }
+       while (evas_list_count(_e_exehist->mimes) > 500)
+         {
+            E_Exehist_Item *ei;
+            
+            ei = _e_exehist->mimes->data;
+            if (ei->exe) evas_stringshare_del(ei->exe);
+            if (ei->launch_method) evas_stringshare_del(ei->launch_method);
+            free(ei);
+            _e_exehist->mimes = evas_list_remove_list(_e_exehist->mimes, 
_e_exehist->mimes);
+         }
+     }
 }
 
 static int



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to