*/
const char *pepper_efl_object_title_get(Evas_Object *obj);
+/**
+ * @brief Get app_id of the client
+ * @since_tizen 3.0
+ * @param[in] obj Evas object which is returned from libpepper-efl
+ * @return app_id on success, @c NULL otherwise
+ * title should NOT be freed after use.
+ */
+const char *pepper_efl_object_app_id_get(Evas_Object *obj);
+
#endif
return title;
}
+const char *
+pepper_efl_object_app_id_get(Evas_Object *obj)
+{
+ OBJ_DATA_GET NULL;
+
+ pepper_efl_shell_surface_t *shsurf = NULL;
+ pepper_surface_t *surface = NULL;
+ const char *app_id = NULL;
+
+ surface = po->surface;
+
+ if (surface)
+ {
+ shsurf = pepper_object_get_user_data((pepper_object_t *)surface,
+ pepper_surface_get_role(surface));
+
+ if (shsurf)
+ app_id = shsurf->app_id;
+ }
+
+ if (app_id)
+ DBG("[OBJECT] App_id Get : %s", app_id);
+
+ return app_id;
+}
+
static void
xdg_surface_set_app_id(struct wl_client *client, struct wl_resource *resource, const char *app_id)
{
+ pepper_efl_shell_surface_t *shsurf = wl_resource_get_user_data(resource);
DBG("client %p", client);
+
+ if (shsurf->app_id)
+ eina_stringshare_del(shsurf->app_id);
+ shsurf->app_id = eina_stringshare_add(app_id);
}
static void
Eina_Bool ack_configure;
const char *title;
+ const char *app_id;
};
Eina_Bool pepper_efl_shell_init(pepper_efl_comp_t *comp);