Updating license in spec file
[pkgs/l/libug-setting-theme-efl.git] / setting-theme-efl.c
index 8f823c1..6c55bf8 100755 (executable)
@@ -1,30 +1,21 @@
 /*
+  * Copyright 2012  Samsung Electronics Co., Ltd
+  *
+  * Licensed under the Flora License, Version 1.0 (the License);
+  * you may not use this file except in compliance with the License.
+  * You may obtain a copy of the License at
+  *
+  * http://www.tizenopensource.org/license
+  *
+  * Unless required by applicable law or agreed to in writing, software
+  * distributed under the License is distributed on an AS IS BASIS,
+  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  * See the License for the specific language governing permissions and
+  * limitations under the License.
+  */
 
-   Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
 
-   This file is part of libug-setting-theme-efl
-   Written by Shinwoo Kim <cinoo.kim@samsung.com>,
-              ChunEon Park <chuneon.park@samsung.com>,
-              Woohyun Jung <wh0705.jung@samsung.com>,
-              Jaehwan Kim <jae.hwan.kim@samsung.com>,
-              Juyung Seo <juyung.seo@samsung.com>,
 
-   PROPRIETARY/CONFIDENTIAL
-
-   This software is the confidential and proprietary information of
-   SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
-   disclose such Confidential Information and shall use it only in
-   accordance with the terms of the license agreement you entered
-   into with SAMSUNG ELECTRONICS.
-
-   SAMSUNG make no representations or warranties about the suitability
-   of the software, either express or implied, including but not limited
-   to the implied warranties of merchantability, fitness for a particular
-   purpose, or non-infringement. SAMSUNG shall not be liable for any
-   damages suffered by licensee as a result of using, modifying or
-   distributing this software or its derivatives.
-
-*/
 
 #ifndef UG_MODULE_API
 #define UG_MODULE_API __attribute__ ((visibility("default")))
@@ -483,26 +474,6 @@ static void _get_theme_list( const char *folder_path, Eina_List **theme_list )
    closedir( dp );
 }
 
-static int _delete_idle_imgs()
-{
-   int ret = 0;
-   char *env = getenv( "UI_IDLECAPTURE_PATH" );
-
-   if( efreet_mime_init() == 0 ) {
-      return ret;
-   }
-
-   if(!env) {
-      _remove_files_in_dir( IDLE_IMG_PATH );
-   }else {
-      _remove_files_in_dir( env );
-   }
-
-   efreet_mime_shutdown();
-
-   return ret;
-}
-
 static int _selected_theme_idx_get()
 {
    Eina_List *elist = NULL;
@@ -590,7 +561,6 @@ static void _popup_default_theme_response_yes_cb( void *data, Evas_Object *obj,
    // Change Selected Theme Value
    vconf_set_str(SETTING_THEME_SELECTED_THEME, item_data->label);
 
-   _delete_idle_imgs();
    aul_app_get_running_app_info( exit_apps_iterfunc, NULL );
    elm_exit();
 }
@@ -1478,7 +1448,6 @@ UG_MODULE_API int setting_plugin_reset(bundle *data, void *priv)
    vconf_set_str(VCONFKEY_SETAPPL_WIDGET_THEME_STR, eina_strbuf_string_get(efl_path) );
    eina_strbuf_free(efl_path);
 
-   _delete_idle_imgs();
    aul_app_get_running_app_info( exit_apps_iterfunc, NULL );
 
    return 0;