projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27df982
)
prefs should CRI on add/file_set if init has failed
author
zmike
<michael.blumenkrantz@gmail.com>
Mon, 20 Jan 2014 18:25:37 +0000
(13:25 -0500)
committer
zmike
<michael.blumenkrantz@gmail.com>
Mon, 20 Jan 2014 18:36:56 +0000
(13:36 -0500)
src/lib/elm_prefs.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_prefs.c
b/src/lib/elm_prefs.c
index d03268a55e2d5ca856b61070dfcba65f7ba51d55..7203f8dab868d3971302975e451e3d912520bb02 100644
(file)
--- a/
src/lib/elm_prefs.c
+++ b/
src/lib/elm_prefs.c
@@
-516,7
+516,7
@@
elm_prefs_add(Evas_Object *parent)
if (!_elm_prefs_init_count)
{
-
ERR
("prefs_iface module is not loaded! you can't"
+
CRI
("prefs_iface module is not loaded! you can't"
" create prefs widgets");
return NULL;
}
@@
-1160,6
+1160,13
@@
_elm_prefs_file_set(Eo *obj, void *_pd, va_list *list)
Elm_Prefs_Smart_Data *sd = _pd;
+ if (!_elm_prefs_init_count)
+ {
+ CRI("prefs_iface module is not loaded! you can't"
+ " create prefs widgets");
+ *ret = EINA_FALSE;
+ return;
+ }
prefix = elm_app_data_dir_get();
if (!strlen(prefix))
{