extern int dynamicbox_request_update_by_id(const char *filename);
extern int dynamicbox_trigger_update_monitor(const char *id, int is_gbar);
extern int dynamicbox_update_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name);
-extern int dynamicbox_send_updated(const char *pkgname, const char *id, int idx, int x, int y, int w, int h);
-extern int dynamicbox_send_desc_updated(const char *pkgname, const char *id, int idx, const char *descfile, int x, int y, int w, int h);
+extern int dynamicbox_send_updated(const char *pkgname, const char *id, int idx, int x, int y, int w, int h, int gbar, const char *descfile);
/* End of a file */
.h = item->inst->h,
};
- dynamicbox_provider_send_desc_updated(item->inst->item->pkgname, item->inst->id, filename, ®ion);
+ dynamicbox_provider_send_updated(item->inst->item->pkgname, item->inst->id, DBOX_PRIMARY_BUFFER, ®ion, 1, filename);
} else {
ErrPrint("But GBAR is not opened, Ignore this update (%s)\n", item->inst->id);
}
*/
dynamicbox_provider_send_extra_info(item->inst->item->pkgname, item->inst->id, item->inst->priority,
content, title, item->inst->icon, item->inst->name);
- dynamicbox_provider_send_updated(item->inst->item->pkgname, item->inst->id, ®ion);
+ dynamicbox_provider_send_updated(item->inst->item->pkgname, item->inst->id, DBOX_PRIMARY_BUFFER, ®ion, 0, NULL);
} else {
item->is_dbox_updated++;
}
*/
dynamicbox_provider_send_extra_info(item->inst->item->pkgname, item->inst->id, item->inst->priority,
item->inst->content, item->inst->title, item->inst->icon, item->inst->name);
- dynamicbox_provider_send_updated(item->inst->item->pkgname, item->inst->id, ®ion);
+ dynamicbox_provider_send_updated(item->inst->item->pkgname, item->inst->id, DBOX_PRIMARY_BUFFER, ®ion, 0, NULL);
item->is_dbox_updated = 0;
}
* \note
* Exported API for each dynamicboxes.
*/
-int dynamicbox_send_updated(const char *pkgname, const char *id, int idx, int x, int y, int w, int h)
+int dynamicbox_send_updated(const char *pkgname, const char *id, int idx, int x, int y, int w, int h, int gbar, const char *descfile)
{
Eina_List *l;
struct item *item;
continue;
}
- if (idx == DBOX_PRIMARY_BUFFER) {
- if (item->direct_path) {
- ret = dynamicbox_provider_send_direct_updated(connection_handle(item->direct_path), pkgname, id, ®ion);
- } else {
- ret = dynamicbox_provider_send_updated(pkgname, id, ®ion);
- }
+ if (item->direct_path) {
+ ret = dynamicbox_provider_send_direct_updated(connection_handle(item->direct_path), pkgname, id, idx, ®ion, gbar, descfile);
} else {
- if (item->direct_path) {
- ret = dynamicbox_provider_send_extra_direct_updated(connection_handle(item->direct_path), pkgname, id, idx, ®ion);
- } else {
- ret = dynamicbox_provider_send_extra_updated(pkgname, id, idx, ®ion);
- }
- }
-
- break;
- }
-
- return ret;
-}
-
-int dynamicbox_send_desc_updated(const char *pkgname, const char *id, int idx, const char *descfile, int x, int y, int w, int h)
-{
- Eina_List *l;
- struct item *item;
- int ret = DBOX_STATUS_ERROR_NOT_EXIST;
- dynamicbox_damage_region_t region = {
- .x = x,
- .y = y,
- .w = w,
- .h = h,
- };
-
- EINA_LIST_FOREACH(s_info.item_list, l, item) {
- if (strcmp(item->inst->item->pkgname, pkgname) || strcmp(item->inst->id, id)) {
- continue;
- }
-
- if (idx == DBOX_PRIMARY_BUFFER) {
- if (item->direct_path) {
- ret = dynamicbox_provider_send_direct_desc_updated(connection_handle(item->direct_path), pkgname, id, descfile, ®ion);
- } else {
- ret = dynamicbox_provider_send_desc_updated(pkgname, id, descfile, ®ion);
- }
- } else {
- if (item->direct_path) {
- ret = dynamicbox_provider_send_extra_direct_desc_updated(connection_handle(item->direct_path), pkgname, id, idx, ®ion);
- } else {
- ret = dynamicbox_provider_send_extra_desc_updated(pkgname, id, idx, ®ion);
- }
+ ret = dynamicbox_provider_send_updated(pkgname, id, idx, ®ion, gbar, descfile);
}
break;