add signal rotation and indicator mode change.

child elms can know indicator mod change and rotation change


SVN revision: 75955
This commit is contained in:
Jiyoun Park 2012-09-03 06:55:07 +00:00
parent 8b3c650468
commit 3cc89e117d
1 changed files with 8 additions and 0 deletions

View File

@ -160,6 +160,8 @@ static const char SIG_UNFULLSCREEN[] = "unfullscreen";
static const char SIG_MAXIMIZED[] = "maximized"; static const char SIG_MAXIMIZED[] = "maximized";
static const char SIG_UNMAXIMIZED[] = "unmaximized"; static const char SIG_UNMAXIMIZED[] = "unmaximized";
static const char SIG_IOERR[] = "ioerr"; static const char SIG_IOERR[] = "ioerr";
static const char SIG_INDICATOR_PROP_CHANGED[] = "indicator,prop,changed";
static const char SIG_ROTATION_CHANGED[] = "rotation,changed";
static const Evas_Smart_Cb_Description _smart_callbacks[] = { static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_DELETE_REQUEST, ""}, {SIG_DELETE_REQUEST, ""},
@ -176,6 +178,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_MAXIMIZED, ""}, {SIG_MAXIMIZED, ""},
{SIG_UNMAXIMIZED, ""}, {SIG_UNMAXIMIZED, ""},
{SIG_IOERR, ""}, {SIG_IOERR, ""},
{SIG_INDICATOR_PROP_CHANGED, ""},
{SIG_ROTATION_CHANGED, ""},
{NULL, NULL} {NULL, NULL}
}; };
@ -3430,6 +3434,7 @@ elm_win_rotation_set(Evas_Object *obj,
#ifdef HAVE_ELEMENTARY_X #ifdef HAVE_ELEMENTARY_X
_elm_win_xwin_update(sd); _elm_win_xwin_update(sd);
#endif #endif
evas_object_smart_callback_call(obj, SIG_ROTATION_CHANGED, NULL);
} }
EAPI void EAPI void
@ -3449,6 +3454,7 @@ elm_win_rotation_with_resize_set(Evas_Object *obj,
#ifdef HAVE_ELEMENTARY_X #ifdef HAVE_ELEMENTARY_X
_elm_win_xwin_update(sd); _elm_win_xwin_update(sd);
#endif #endif
evas_object_smart_callback_call(obj, SIG_ROTATION_CHANGED, NULL);
} }
EAPI int EAPI int
@ -3564,6 +3570,7 @@ elm_win_indicator_mode_set(Evas_Object *obj,
(sd->x.xwin, ECORE_X_ILLUME_INDICATOR_STATE_OFF); (sd->x.xwin, ECORE_X_ILLUME_INDICATOR_STATE_OFF);
} }
#endif #endif
evas_object_smart_callback_call(obj, SIG_INDICATOR_PROP_CHANGED, NULL);
} }
EAPI Elm_Win_Indicator_Mode EAPI Elm_Win_Indicator_Mode
@ -3599,6 +3606,7 @@ elm_win_indicator_opacity_set(Evas_Object *obj,
(sd->x.xwin, ECORE_X_ILLUME_INDICATOR_TRANSPARENT); (sd->x.xwin, ECORE_X_ILLUME_INDICATOR_TRANSPARENT);
} }
#endif #endif
evas_object_smart_callback_call(obj, SIG_INDICATOR_PROP_CHANGED, NULL);
} }
EAPI Elm_Win_Indicator_Opacity_Mode EAPI Elm_Win_Indicator_Opacity_Mode