Enlightenment CVS committal Author : morlenxus Project : e_modules Module : calendar
Dir : e_modules/calendar Modified Files: e_mod_main.c Log Message: Restore popup state after command refresh. =================================================================== RCS file: /cvs/e/e_modules/calendar/e_mod_main.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- e_mod_main.c 10 Jan 2008 07:23:21 -0000 1.19 +++ e_mod_main.c 24 Jan 2008 00:13:16 -0000 1.20 @@ -245,6 +245,7 @@ char buf[4]; time_t current_time; struct tm *local_time; + int old_popup_state=0, old_popup_pinned_state=0; if (!inst) return; calendar = inst->calendar; @@ -258,14 +259,17 @@ strftime (buf, sizeof(buf), "%a", local_time); edje_object_part_text_set (calendar->o_icon, "weekday", buf); - if ((inst->popup) && - (inst->popup->win->visible)) + if (inst->popup) + { + old_popup_state = inst->popup->win->visible; + old_popup_pinned_state = inst->popup->pinned; + } + _calendar_popup_content_create(inst); + if (inst->popup && old_popup_state) { - _calendar_popup_content_create(inst); e_gadcon_popup_show(inst->popup); + if (old_popup_pinned_state) e_gadcon_popup_toggle_pinned(inst->popup); } - else - _calendar_popup_content_create(inst); } static void ------------------------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs