aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorJiyoun Park <jijibe99@gmail.com>2012-09-03 06:55:07 +0000
committerJiyoun Park <jijibe99@gmail.com>2012-09-03 06:55:07 +0000
commit3cc89e117d1bf78d48efd2ca06039fa98a50d6dd (patch)
tree60c0df0ffe909677bb4d762257d26bfe2a7b3763 /legacy/elementary/src/lib/elm_win.c
parentElementary: (elm_flip) Not much point in fetching the Z values here if we are... (diff)
downloadefl-3cc89e117d1bf78d48efd2ca06039fa98a50d6dd.tar.gz
add signal rotation and indicator mode change.
child elms can know indicator mod change and rotation change SVN revision: 75955
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 6a3fe7ec6d..e1a9745b81 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -160,6 +160,8 @@ static const char SIG_UNFULLSCREEN[] = "unfullscreen";
static const char SIG_MAXIMIZED[] = "maximized";
static const char SIG_UNMAXIMIZED[] = "unmaximized";
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[] = {
{SIG_DELETE_REQUEST, ""},
@@ -176,6 +178,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_MAXIMIZED, ""},
{SIG_UNMAXIMIZED, ""},
{SIG_IOERR, ""},
+ {SIG_INDICATOR_PROP_CHANGED, ""},
+ {SIG_ROTATION_CHANGED, ""},
{NULL, NULL}
};
@@ -3430,6 +3434,7 @@ elm_win_rotation_set(Evas_Object *obj,
#ifdef HAVE_ELEMENTARY_X
_elm_win_xwin_update(sd);
#endif
+ evas_object_smart_callback_call(obj, SIG_ROTATION_CHANGED, NULL);
}
EAPI void
@@ -3449,6 +3454,7 @@ elm_win_rotation_with_resize_set(Evas_Object *obj,
#ifdef HAVE_ELEMENTARY_X
_elm_win_xwin_update(sd);
#endif
+ evas_object_smart_callback_call(obj, SIG_ROTATION_CHANGED, NULL);
}
EAPI int
@@ -3564,6 +3570,7 @@ elm_win_indicator_mode_set(Evas_Object *obj,
(sd->x.xwin, ECORE_X_ILLUME_INDICATOR_STATE_OFF);
}
#endif
+ evas_object_smart_callback_call(obj, SIG_INDICATOR_PROP_CHANGED, NULL);
}
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);
}
#endif
+ evas_object_smart_callback_call(obj, SIG_INDICATOR_PROP_CHANGED, NULL);
}
EAPI Elm_Win_Indicator_Opacity_Mode