Enlightenment CVS committal

Author  : morlenxus
Project : e_modules
Module  : execwatch

Dir     : e_modules/execwatch


Modified Files:
        e_mod_main.c 


Log Message:
Restore popup state after command refresh.

===================================================================
RCS file: /cvs/e/e_modules/execwatch/e_mod_main.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_mod_main.c        23 Jan 2008 01:12:13 -0000      1.1
+++ e_mod_main.c        24 Jan 2008 00:06:44 -0000      1.2
@@ -272,7 +272,7 @@
    Ecore_Exe_Event_Data_Line *lines;
    Ecore_Exe_Event_Del *ev;
    Instance *inst;
-   int i=0;
+   int i=0, old_popup_state=0, old_popup_pinned_state=0;
 
    ev = event;
    if (!ev) return 1;
@@ -316,9 +316,17 @@
               _execwatch_icon(inst, "cmd_error");
          }
 
+       if (inst->popup)
+         {
+            old_popup_state = inst->popup->win->visible;
+            old_popup_pinned_state = inst->popup->pinned;
+         }
        _execwatch_popup_content_create(inst);
-       if (inst->popup && inst->popup->win->visible)
-       e_gadcon_popup_show(inst->popup);
+       if (inst->popup && old_popup_state)
+         {
+            e_gadcon_popup_show(inst->popup);
+            if (old_popup_pinned_state) 
e_gadcon_popup_toggle_pinned(inst->popup);
+         }
      }
    else if (!strcmp(ecore_exe_tag_get(ev->exe), DBLCLK_EXE_TAG))
      {



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to