PackageKit gadget: fix hiding of progbar in bryce

This seems to me more an hack than a fix, but this is how
elm works :(

ref T7119
This commit is contained in:
Davide Andreoli 2018-07-09 22:36:55 +02:00
parent 5365493788
commit 38ae2285ec
2 changed files with 6 additions and 4 deletions

View File

@ -258,10 +258,10 @@ packagekit_popup_update(E_PackageKit_Instance *inst, Eina_Bool rebuild_list)
elm_genlist_clear(inst->popup_genlist); elm_genlist_clear(inst->popup_genlist);
elm_progressbar_value_set(inst->popup_progressbar, elm_progressbar_value_set(inst->popup_progressbar,
ctxt->transaction_progress); ctxt->transaction_progress);
evas_object_show(inst->popup_progressbar); evas_object_show(inst->popup_progressbar_frame);
} }
else else
evas_object_hide(inst->popup_progressbar); evas_object_hide(inst->popup_progressbar_frame);
// update title and error lables // update title and error lables
if (ctxt->transaction) if (ctxt->transaction)
@ -538,7 +538,7 @@ packagekit_popup_new(E_PackageKit_Instance *inst, Eina_Bool is_gadcon)
evas_object_show(li); evas_object_show(li);
// central area (progress bar) (inside a padding frame) // central area (progress bar) (inside a padding frame)
fr = elm_frame_add(table); fr = inst->popup_progressbar_frame = elm_frame_add(table);
elm_object_style_set(fr, "pad_large"); elm_object_style_set(fr, "pad_large");
E_EXPAND(fr); E_EXPAND(fr);
E_FILL(fr); E_FILL(fr);
@ -596,7 +596,8 @@ packagekit_popup_del(E_PackageKit_Instance *inst)
if (inst->ctxpopup) if (inst->ctxpopup)
elm_ctxpopup_dismiss(inst->ctxpopup); elm_ctxpopup_dismiss(inst->ctxpopup);
inst->popup_genlist = inst->popup_title_entry = inst->popup_progressbar = NULL; inst->popup_genlist = inst->popup_title_entry = NULL;
inst->popup_progressbar = inst->popup_progressbar_frame = NULL;
if (inst->popup_genlist_itc) if (inst->popup_genlist_itc)
{ {
elm_genlist_item_class_free(inst->popup_genlist_itc); elm_genlist_item_class_free(inst->popup_genlist_itc);

View File

@ -84,6 +84,7 @@ typedef struct _E_PackageKit_Instance
Evas_Object *popup_error_label; Evas_Object *popup_error_label;
Evas_Object *popup_install_button; Evas_Object *popup_install_button;
Evas_Object *popup_progressbar; Evas_Object *popup_progressbar;
Evas_Object *popup_progressbar_frame;
Evas_Object *popup_genlist; Evas_Object *popup_genlist;
Elm_Genlist_Item_Class *popup_genlist_itc; Elm_Genlist_Item_Class *popup_genlist_itc;
Eina_Bool popup_help_mode; Eina_Bool popup_help_mode;