* Set the rotation used on the tickernoti object
*
* @param obj The tickernotil object
- * @param angle The rotation angle will be used on the tickernoti object
+ * @param angle The rotation angle(in degree) will be used on the tickernoti object
* @ingroup TickerNoti
*/
EAPI void
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd) return;
-
Evas_Coord x, y, w, h;
-#ifdef HAVE_ELEMENTARY_X
- Evas_Coord root_w, root_h;
+ if (!wd) return;
if (angle%90 != 0) return;
- wd->angle = angle;
+ if (angle >= 0)
+ angle = angle%360;
+ else
+ angle = angle - (angle/360 - 1)*360;
+
+ wd->angle = angle;
+#ifdef HAVE_ELEMENTARY_X
+ Evas_Coord root_w, root_h;
/*
* manual calculate win_tickernoti_indi window position & size
* - win_indi is not full size window (480 x 27)
x = 0;
y = 0;
break;
- case -90:
+ case 270:
#ifdef HAVE_ELEMENTARY_X
w = root_h;
#endif