okra pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=762879bf5c311853f3f8713f5fc1cbe52ce9d288

commit 762879bf5c311853f3f8713f5fc1cbe52ce9d288
Author: Stephen 'Okra' Houston <[email protected]>
Date:   Fri Feb 10 11:14:36 2017 -0600

    Batman - Don't destroy the popup on hide.
---
 src/modules/sysinfo/batman/batman.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/modules/sysinfo/batman/batman.c 
b/src/modules/sysinfo/batman/batman.c
index 9ecf7e6..db3befd 100644
--- a/src/modules/sysinfo/batman/batman.c
+++ b/src/modules/sysinfo/batman/batman.c
@@ -89,9 +89,10 @@ _batman_popup_create(Instance *inst)
 
    frame = elm_frame_add(popup);
    E_EXPAND(frame); E_FILL(frame);
-   if (inst->cfg->batman.have_power && (inst->cfg->batman.full < 100))
+   printf("%d\n", inst->cfg->batman.full);
+   if (inst->cfg->batman.have_power && (inst->cfg->batman.full < 99))
      elm_object_text_set(frame, _("Battery Charging"));
-   else if (inst->cfg->batman.full >= 100)
+   else if (inst->cfg->batman.full >= 99)
      elm_object_text_set(frame, _("Battery Fully Charged"));
    else
      {
@@ -407,7 +408,7 @@ _batman_cb_warning_popup_hide(void *data, Evas *e 
EINA_UNUSED, Evas_Object *obj
 
    inst = (Instance *)data;
    if ((!inst) || (!inst->warning)) return;
-   elm_ctxpopup_dismiss(inst->warning);
+   evas_object_hide(inst->warning);
 }
 
 static void
@@ -445,7 +446,6 @@ _batman_warning_popup(Instance *inst, int t, double percent)
    if (mins < 0) mins = 0;
    snprintf(buf, 4096, _("AC power is recommended. %i:%02i Remaining"), hrs, 
mins);
 
-
    if (inst->cfg->batman.desktop_notifications)
      {
         E_Notification_Notify n;

-- 


Reply via email to