const char *style = elm_widget_style_get(obj);
const char *position;
double ax, ay;
+ Elm_Theme_Apply ret = ELM_THEME_APPLY_FAILED;
ELM_NOTIFY_DATA_GET(obj, sd);
+ ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, ret);
ax = sd->horizontal_align;
ay = sd->vertical_align;
position = "center";
}
- return elm_widget_theme_object_set(obj, sd->notify, "notify", position, style);
+ ret = elm_widget_theme_object_set(obj, sd->notify, "notify", position, style);
+
+ if (wd->orient_mode != -1)
+ {
+ char buf[128];
+ snprintf(buf, sizeof(buf), "elm,state,orient,%d", wd->orient_mode);
+ edje_object_signal_emit(sd->notify, buf, "elm");
+ }
+
+ return ret;
}
/**
*vertical = sd->vertical_align;
}
+EOLIAN static void
+_elm_notify_elm_widget_orientation_set(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, int orient_mode)
+{
+ eo_do_super(obj, MY_CLASS, elm_obj_widget_orientation_set(orient_mode));
+
+ if (orient_mode != -1)
+ {
+ char buf[128];
+ snprintf(buf, sizeof(buf), "elm,state,orient,%d", orient_mode);
+ edje_object_signal_emit(sd->notify, buf, "elm");
+ }
+}
+
static void
_elm_notify_class_constructor(Eo_Class *klass)
{
Elm.Widget.sub_object_del;
Elm.Widget.part_text.set;
Elm.Widget.part_text.get;
+ Elm.Widget.orientation.set;
Elm.Container.content_get;
Elm.Container.content_set;
Elm.Container.content_unset;