if (!elm_widget_sub_object_add(parent, obj))
ERR("could not add %p as sub object of %p", obj, parent);
+ _elm_widget_orient_signal_emit(obj);
+
return obj;
}
ELM_WIDGET_DATA_GET(obj, sd);
sd->highlight_root = EINA_TRUE;
+ _elm_widget_orient_signal_emit(obj);
+
return obj;
}
if (!elm_widget_sub_object_add(parent, obj))
ERR("could not add %p as sub object of %p", obj, parent);
+ _elm_widget_orient_signal_emit(obj);
+
return obj;
}
if (!elm_widget_sub_object_add(parent, obj))
ERR("could not add %p as sub object of %p", obj, parent);
+ _elm_widget_orient_signal_emit(obj);
+
return obj;
}
}
+// temporary code. should be removed after eo is applied.
+EAPI void
+_elm_widget_orient_signal_emit(Evas_Object *obj)
+{
+ ELM_WIDGET_DATA_GET(obj, sd);
+ char buf[128];
+ if (sd->orient_mode > 0)
+ {
+ snprintf(buf, sizeof(buf), "elm,state,orient,%d", sd->orient_mode);
+ elm_widget_signal_emit(obj, buf, "elm");
+ }
+}
+
/**
* @internal
*