creating ug for plugin model
[apps/core/preloaded/settings.git] / src / setting-more-menu.c
index fea63df..bbabcac 100755 (executable)
@@ -1,22 +1,18 @@
 /*
  * setting
+ * Copyright (c) 2012 Samsung Electronics Co., Ltd.
  *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
- *
- * Contact: MyoungJune Park <mj2004.park@samsung.com>
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * 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.apache.org/licenses/LICENSE-2.0
+ *     http://floralicense.org/license/
  *
  * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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.
- *
  */
 #include <setting-more-menu.h>
 
@@ -38,7 +34,7 @@ setting_view setting_view_more_menu = {
  *
  ***************************************************/
 const static Elm_Genlist_Item_Class itc_sep = {
-       .item_style = "dialogue/separator/21/with_line",
+       .item_style = "dialogue/separator",
        .func.text_get = NULL,
        .func.content_get = NULL,
        .func.state_get = NULL,
@@ -76,6 +72,8 @@ static int setting_more_menu_create(void *cb)
                                     setting_more_menu_click_softkey_cancel_cb,
                                     NULL, ad, &scroller, ad->navibar_main);
 
+       evas_object_smart_callback_add(scroller, "realized", __gl_realized, ad);
+
        Elm_Object_Item *item = elm_genlist_item_append(scroller, &(itc_sep),
                                       NULL, NULL,
                                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
@@ -105,6 +103,7 @@ static int setting_more_menu_destroy(void *cb)
                return SETTING_RETURN_SUCCESS;
        }
 
+       evas_object_smart_callback_del(ad->genlist_load, "realized", __gl_realized);
 
        elm_naviframe_item_pop(ad->navibar_main);
        ad->view_load = SETTING_VIEW_MAIN;