[elm] Implement dangling smart cb for prefs widget.

SVN revision: 81567
devs/felipealmeida/promises
Gustavo Lima Chaves 10 years ago
parent 24e2e9d2e7
commit ed0519a582
  1. 7
      legacy/elementary/src/lib/elm_prefs.c
  2. 8
      legacy/elementary/src/lib/elm_prefs.h

@ -1271,8 +1271,7 @@ _elm_prefs_data_set(Eo *obj, void *_pd, va_list *list)
INF("resetting prefs to default values");
_elm_prefs_values_get_default(sd->root, EINA_FALSE);
*ret = EINA_TRUE;
return;
goto end;
}
elm_prefs_data_ref(sd->prefs_data);
@ -1281,6 +1280,10 @@ _elm_prefs_data_set(Eo *obj, void *_pd, va_list *list)
_elm_prefs_values_get_user(sd, sd->root);
sd->values_fetching = EINA_FALSE;
end:
evas_object_smart_callback_call
(obj, SIG_PAGE_CHANGED, (char *)sd->root->name);
*ret = EINA_TRUE;
}

@ -399,15 +399,15 @@ enum
* element modification by using elm_prefs_autosave_set().
*
* This widget emits the following signals:
* - @c "page,changed": a given page has changed (event info is the
* page's name)
* - @c "page,saved": a given page has had its values saved back on
* user config file (event info is the page's
* name)
* - @c "page,reset": a given page has had its values reset (event
* info is the page's name)
* - @c "page,loaded": a given page has been loaded (event info is
* the page's name)
* - @c "page,changed": a given page has been loaded <b>with user
* (@c .cfg) values</b> (event info is the page's name)
* - @c "page,loaded": a given page has been loaded <b>with system
* (@c .epb) values</b> (event info is the page's name)
* - @c "item,changed": a given page's item has changed (event info is
* the item's full hierarchical name, in the form
* @c "page:subpage:subsubpage:item")

Loading…
Cancel
Save