Evas_Coord sz;
switch (systray_gadcon_get(notifier_inst->inst)->orient)
{
+ case E_GADCON_ORIENT_FLOAT:
case E_GADCON_ORIENT_HORIZ:
case E_GADCON_ORIENT_TOP:
case E_GADCON_ORIENT_BOTTOM:
case E_GADCON_ORIENT_CORNER_TR:
case E_GADCON_ORIENT_CORNER_BL:
case E_GADCON_ORIENT_CORNER_BR:
- sz = systray_gadcon_get(notifier_inst->inst)->shelf->h;
+ if (systray_gadcon_get(notifier_inst->inst)->shelf)
+ sz = systray_gadcon_get(notifier_inst->inst)->shelf->h;
+ else
+ evas_object_geometry_get(notifier_inst->inst->gcc->o_frame ?:
+ notifier_inst->inst->gcc->o_base, NULL, NULL, NULL, &sz);
break;
case E_GADCON_ORIENT_VERT:
case E_GADCON_ORIENT_CORNER_LB:
case E_GADCON_ORIENT_CORNER_RB:
default:
- sz = systray_gadcon_get(notifier_inst->inst)->shelf->w;
+ if (systray_gadcon_get(notifier_inst->inst)->shelf)
+ sz = systray_gadcon_get(notifier_inst->inst)->shelf->w;
+ else
+ evas_object_geometry_get(notifier_inst->inst->gcc->o_frame ?:
+ notifier_inst->inst->gcc->o_base, NULL, NULL, &sz, NULL);
break;
}
sz = sz - 5;