From 63fcb74610c261fa1c4f6d2124c3e363990fa06e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 10 Aug 2012 10:49:56 +0000 Subject: [PATCH] move animation hint into bg group so we can use a better codepath to check it SVN revision: 75093 --- src/bin/e_import_config_dialog.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/bin/e_import_config_dialog.c b/src/bin/e_import_config_dialog.c index c19a58f8f..49a5c7ee3 100644 --- a/src/bin/e_import_config_dialog.c +++ b/src/bin/e_import_config_dialog.c @@ -89,8 +89,6 @@ _import_edj_gen(E_Import_Config_Dialog *import) else snprintf(enc, sizeof(enc), "LOSSY %i", import->quality); } - if (!anim) - fprintf(f, "data.item: \"noanimation\" \"1\";\n"); switch (import->method) { case IMPORT_STRETCH: @@ -98,6 +96,7 @@ _import_edj_gen(E_Import_Config_Dialog *import) "images { image: \"%s\" %s; }\n" "collections {\n" "group { name: \"e/desktop/background\";\n" + "%s" "data { item: \"style\" \"0\"; }\n" "max: %i %i;\n" "parts {\n" @@ -105,7 +104,7 @@ _import_edj_gen(E_Import_Config_Dialog *import) "description { state: \"default\" 0.0;\n" "image { normal: \"%s\"; scale_hint: STATIC; }\n" "} } } } }\n" - , fstrip, enc, w, h, fstrip); + , fstrip, enc, anim ? "" : "data.item: \"noanimation\" \"1\";\n", w, h, fstrip); break; case IMPORT_TILE: @@ -114,6 +113,7 @@ _import_edj_gen(E_Import_Config_Dialog *import) "collections {\n" "group { name: \"e/desktop/background\";\n" "data { item: \"style\" \"1\"; }\n" + "%s" "max: %i %i;\n" "parts {\n" "part { name: \"bg\"; mouse_events: 0;\n" @@ -123,7 +123,7 @@ _import_edj_gen(E_Import_Config_Dialog *import) "relative: 0.0 0.0;\n" "offset: %i %i;\n" "} } } } } } }\n" - , fstrip, enc, w, h, fstrip, w, h); + , fstrip, enc, anim ? "" : "data.item: \"noanimation\" \"1\";\n", w, h, fstrip, w, h); break; case IMPORT_CENTER: @@ -132,6 +132,7 @@ _import_edj_gen(E_Import_Config_Dialog *import) "collections {\n" "group { name: \"e/desktop/background\";\n" "data { item: \"style\" \"2\"; }\n" + "%s" "max: %i %i;\n" "parts {\n" "part { name: \"col\"; type: RECT; mouse_events: 0;\n" @@ -143,7 +144,7 @@ _import_edj_gen(E_Import_Config_Dialog *import) "min: %i %i; max: %i %i;\n" "image { normal: \"%s\"; }\n" "} } } } }\n" - , fstrip, enc, w, h, cr, cg, cb, ca, w, h, w, h, fstrip); + , fstrip, enc, anim ? "" : "data.item: \"noanimation\" \"1\";\n", w, h, cr, cg, cb, ca, w, h, w, h, fstrip); break; case IMPORT_SCALE_ASPECT_IN: @@ -154,6 +155,7 @@ _import_edj_gen(E_Import_Config_Dialog *import) "collections {\n" "group { name: \"e/desktop/background\";\n" "data { item: \"style\" \"3\"; }\n" + "%s" "max: %i %i;\n" "parts {\n" "part { name: \"col\"; type: RECT; mouse_events: 0;\n" @@ -165,7 +167,8 @@ _import_edj_gen(E_Import_Config_Dialog *import) "aspect: %1.9f %1.9f; aspect_preference: BOTH;\n" "image { normal: \"%s\"; scale_hint: STATIC; }\n" "} } } } }\n" - , fstrip, enc, w, h, cr, cg, cb, ca, (double)w / (double)h, (double)w / (double)h, fstrip); + , fstrip, enc, anim ? "" : "data.item: \"noanimation\" \"1\";\n", + w, h, cr, cg, cb, ca, (double)w / (double)h, (double)w / (double)h, fstrip); setlocale(LC_NUMERIC, locale); break; @@ -177,6 +180,7 @@ _import_edj_gen(E_Import_Config_Dialog *import) "collections {\n" "group { name: \"e/desktop/background\";\n" "data { item: \"style\" \"4\"; }\n" + "%s" "max: %i %i;\n" "parts {\n" "part { name: \"bg\"; mouse_events: 0;\n" @@ -184,7 +188,8 @@ _import_edj_gen(E_Import_Config_Dialog *import) "aspect: %1.9f %1.9f; aspect_preference: NONE;\n" "image { normal: \"%s\"; scale_hint: STATIC; }\n" "} } } } }\n" - , fstrip, enc, w, h, (double)w / (double)h, (double)w / (double)h, fstrip); + , fstrip, enc, anim ? "" : "data.item: \"noanimation\" \"1\";\n", + w, h, (double)w / (double)h, (double)w / (double)h, fstrip); setlocale(LC_NUMERIC, locale); break; @@ -196,6 +201,7 @@ _import_edj_gen(E_Import_Config_Dialog *import) "collections {\n" "group { name: \"e/desktop/background\";\n" "data { item: \"style\" \"4\"; }\n" + "%s" "max: %i %i;\n" "script {\n" "public cur_anim; public cur_x; public cur_y; public prev_x;\n" @@ -246,7 +252,8 @@ _import_edj_gen(E_Import_Config_Dialog *import) " set_state(PART:\"bg\", \"custom\", 0.0);\n" " set_float(prev_x, 0.0); set_float(prev_y, 0.0);\n" "} } } } }\n" - , fstrip, enc, w, h, (double)w / (double)h, (double)w / (double)h, fstrip); + , fstrip, enc, anim ? "" : "data.item: \"noanimation\" \"1\";\n", + w, h, (double)w / (double)h, (double)w / (double)h, fstrip); setlocale(LC_NUMERIC, locale); break;