fix clock popup widget parenting
authorMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 20 Apr 2015 19:17:05 +0000 (15:17 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 20 Apr 2015 19:17:05 +0000 (15:17 -0400)
src/modules/clock/e_mod_main.c

index 6f85720..9e982ec 100644 (file)
@@ -316,9 +316,9 @@ _clock_popup_new(Instance *inst)
    inst->popup = e_gadcon_popup_new(inst->gcc, 0);
    evas = e_comp->evas;
 
-   inst->o_table = elm_table_add(inst->popup->comp_object);
+   inst->o_table = elm_table_add(e_comp->elm);
 
-   oi = elm_layout_add(inst->popup->comp_object);
+   oi = elm_layout_add(inst->o_table);
    inst->o_popclock = oi;
    evas_object_size_hint_weight_set(oi, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(oi, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -358,7 +358,7 @@ _clock_popup_new(Instance *inst)
    elm_table_pack(inst->o_table, o, 0, 2, 1, 1);
    evas_object_show(o);
 
-   oi = elm_layout_add(inst->popup->comp_object);
+   oi = elm_layout_add(inst->o_table);
    inst->o_cal = oi;
    e_theme_edje_object_set(oi, "base/theme/modules/clock",
                            "e/modules/clock/calendar");