summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2014-01-20 13:25:37 -0500
committerzmike <michael.blumenkrantz@gmail.com>2014-01-20 13:36:56 -0500
commit5c7efc5687bd6ea2367f93fe984bc9ac7f20360a (patch)
treeaecbeab050d8b7a5d1733e35177b35e9822ba4a0
parent27df982d2b4880454ae4055e9bd44618086012b2 (diff)
prefs should CRI on add/file_set if init has failed
-rw-r--r--src/lib/elm_prefs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/elm_prefs.c b/src/lib/elm_prefs.c
index d03268a55..7203f8dab 100644
--- a/src/lib/elm_prefs.c
+++ b/src/lib/elm_prefs.c
@@ -516,7 +516,7 @@ elm_prefs_add(Evas_Object *parent)
516 516
517 if (!_elm_prefs_init_count) 517 if (!_elm_prefs_init_count)
518 { 518 {
519 ERR("prefs_iface module is not loaded! you can't" 519 CRI("prefs_iface module is not loaded! you can't"
520 " create prefs widgets"); 520 " create prefs widgets");
521 return NULL; 521 return NULL;
522 } 522 }
@@ -1160,6 +1160,13 @@ _elm_prefs_file_set(Eo *obj, void *_pd, va_list *list)
1160 1160
1161 Elm_Prefs_Smart_Data *sd = _pd; 1161 Elm_Prefs_Smart_Data *sd = _pd;
1162 1162
1163 if (!_elm_prefs_init_count)
1164 {
1165 CRI("prefs_iface module is not loaded! you can't"
1166 " create prefs widgets");
1167 *ret = EINA_FALSE;
1168 return;
1169 }
1163 prefix = elm_app_data_dir_get(); 1170 prefix = elm_app_data_dir_get();
1164 if (!strlen(prefix)) 1171 if (!strlen(prefix))
1165 { 1172 {