Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_fileman.c e_fileman_smart.c 


Log Message:
- fix ui hang problem (freeze / thaw)


===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_fileman.c 19 Oct 2005 15:04:19 -0000      1.8
+++ e_fileman.c 19 Oct 2005 15:41:23 -0000      1.9
@@ -18,6 +18,7 @@
 static void _e_fileman_cb_resize(E_Win *win);
 static void _e_fileman_cb_delete(E_Win *win);
 static void _e_fileman_vscrollbar_show_cb(void *data, Evas_Object *obj, void 
*ev);
+static void _e_fileman_vscrollbar_hide_cb(void *data, Evas_Object *obj, void 
*ev);
 static void _e_fileman_free(E_Fileman *fileman);
 
 E_Fileman *
@@ -70,6 +71,7 @@
    e_scrollbar_direction_set(fileman->vscrollbar, E_SCROLLBAR_VERTICAL);
    e_scrollbar_callback_drag_add(fileman->vscrollbar, 
_e_fileman_vscrollbar_drag_cb, fileman);
    evas_object_event_callback_add(fileman->vscrollbar, EVAS_CALLBACK_SHOW, 
_e_fileman_vscrollbar_show_cb,fileman);
+   evas_object_event_callback_add(fileman->vscrollbar, EVAS_CALLBACK_HIDE, 
_e_fileman_vscrollbar_show_cb,fileman);
 
    e_win_resize_callback_set(fileman->win, _e_fileman_cb_resize);
    e_win_resize(fileman->win, 640, 480);
@@ -193,5 +195,15 @@
    
    fileman = data;
    
-   e_fm_thaw(fileman->smart);      
+   e_fm_thaw(fileman->smart);
+}
+
+static void
+_e_fileman_vscrollbar_hide_cb(void *data, Evas_Object *obj, void *ev)
+{
+   E_Fileman *fileman;
+   
+   fileman = data;
+   
+   e_fm_thaw(fileman->smart);
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman_smart.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- e_fileman_smart.c   19 Oct 2005 15:04:19 -0000      1.39
+++ e_fileman_smart.c   19 Oct 2005 15:41:23 -0000      1.40
@@ -455,7 +455,7 @@
    
    if ((!object) || !(sd = evas_object_smart_data_get(object)))
      return;
-   
+
    sd->frozen++;
    evas_event_freeze(sd->evas);   
    return sd->frozen;
@@ -469,7 +469,7 @@
    if ((!object) || !(sd = evas_object_smart_data_get(object)))
      return;
    
-   if(!sd->frozen) return 0;
+   if(!sd->frozen) return 0;   
    
    sd->frozen--;
    evas_event_thaw(sd->evas);
@@ -914,8 +914,8 @@
    
    e_icon_layout_thaw(sd->layout);
 
-   if(sd->frozen)
-     return;
+   if(sd->frozen) 
+     return;   
       
    ev = E_NEW(E_Event_Fm_Reconfigure, 1);
    if (ev)




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to