#define SIG_ITEM_SELECTED "item_selected"
#define SIG_SOURCE_EDC "edc"
#define SIG_FAVORITE "favorite"
+#define SIG_VISIBLE "visible"
+#define SIG_INVISIBLE "invisible"
+
+/* Signal Source */
+#define SRC_MYAPPS "source.myapps"
/* Font */
#define FONT_TIZENSANS_REGULAR "TizenSans"
relative, 1.0 1.0;
}
}
+ description {
+ state, "invisible" 0.0;
+ inherit, "default" 0.0;
+ visible, 0;
+ }
}
part {
align, 0.0 0.5;
}
}
+ description {
+ state, "invisible" 0.0;
+ inherit, "default" 0.0;
+ visible, 0;
+ }
}
part {
align, 1.0 1.0;
fixed, 1 1;
}
+ description {
+ state, "invisible" 0.0;
+ inherit, "default" 0.0;
+ visible, 0;
+ }
}
part {
}
}
}
+
+ programs {
+ program {
+ name, SIG_VISIBLE;
+ signal, SIG_VISIBLE;
+ source, SRC_MYAPPS;
+ action, STATE_SET "default" 0.0;
+ target, PART_APP_COUNT;
+ target, PART_GENGRID;
+ target, PART_SORT;
+ }
+
+ program {
+ name, SIG_INVISIBLE;
+ signal, SIG_INVISIBLE;
+ source, SRC_MYAPPS;
+ action, STATE_SET "invisible" 0.0;
+ target, PART_APP_COUNT;
+ target, PART_GENGRID;
+ target, PART_SORT;
+ }
+ }
}
group {
switch (id) {
case MENU_MYAPPS:
- evas_object_show(priv->grid);
+ elm_object_signal_emit(priv->base, SIG_VISIBLE, SRC_MYAPPS);
break;
case MENU_APPSTORE:
- evas_object_hide(priv->grid);
+ elm_object_signal_emit(priv->base, SIG_INVISIBLE, SRC_MYAPPS);
/* It will be implemented later. */
break;
evas_object_show(priv->base);
if (!_draw_top_area(priv)) {
- _ERR("Draw top bottom area failed.");
+ _ERR("Draw top area failed.");
return;
}
}
if (!_draw_bottom_area(priv))
- _ERR("Draw top bottom area failed.");
+ _ERR("Draw bottom area failed.");
}
static void _hide(void *data)