[dialoguegroup] modified for adding new style - edit
authorWooHyun Jung <wh0705.jung@samsung.com>
Wed, 26 Jan 2011 06:42:04 +0000 (15:42 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Wed, 26 Jan 2011 06:42:04 +0000 (15:42 +0900)
src/lib/Elementary.h.in
src/lib/elm_dialoguegroup.c

index bdf6110..a1a3384 100644 (file)
@@ -3074,7 +3074,9 @@ extern "C" {
         ELM_DIALOGUEGROUP_ITEM_STYLE_DATAVIEW = (1 << 4),
         ELM_DIALOGUEGROUP_ITEM_STYLE_NO_BG = (1 << 5),
         ELM_DIALOGUEGROUP_ITEM_STYLE_SUB = (1 << 6),
-        ELM_DIALOGUEGROUP_ITEM_STYLE_LAST = (1 << 7)
+        ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT = (1 << 7),
+        ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT_MERGE = (1 << 8),
+        ELM_DIALOGUEGROUP_ITEM_STYLE_LAST = (1 << 9)
      } Elm_Dialoguegroup_Item_Style;
 
    EAPI Evas_Object   *elm_dialoguegroup_add(Evas_Object *parent);
index 9a1c796..c852726 100644 (file)
@@ -142,6 +142,10 @@ _set_item_theme(Dialogue_Item *item, const char *location)
      snprintf(buf, sizeof(buf), "no_bg_%s", location);
    else if (item->style == ELM_DIALOGUEGROUP_ITEM_STYLE_SUB) 
      snprintf(buf, sizeof(buf), "sub_%s", location);
+   else if (item->style == ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT)
+     snprintf(buf, sizeof(buf), "bg_edit_%s", location);
+   else if (item->style == ELM_DIALOGUEGROUP_ITEM_STYLE_EDIT_MERGE)
+     snprintf(buf, sizeof(buf), "bg_edit_merge_%s", location);
    elm_layout_theme_set(item->bg_layout, "dialoguegroup", buf, elm_widget_style_get(item->obj));
 }