From ef926ddadacefaff01dc4c215c4a03988ebf509f Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 14 Jun 2009 22:20:15 +0000 Subject: [PATCH] fix hoversel theme. SVN revision: 41037 --- data/themes/default.edc | 31 +++++++++++++++++++++++++++++-- src/bin/test.c | 2 +- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/data/themes/default.edc b/data/themes/default.edc index 19701ca..cf066ec 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -3503,9 +3503,24 @@ collections { part { name: "button_image"; mouse_events: 1; description { state: "default" 0.0; - rel1.to: "elm.swallow.slot.top"; + rel1.to_x: "elm.swallow.slot.top"; + rel1.to_y: "elm.swallow.slot.top"; rel1.offset: -2 -6; - rel2.to: "elm.swallow.slot.bottom"; + rel2.to_x: "elm.swallow.slot.top"; + rel2.to_y: "elm.swallow.slot.bottom"; + rel2.offset: 1 5; + image { + normal: "bt_base2.png"; + border: 7 7 7 7; + } + image.middle: SOLID; + } + description { state: "bottom" 0.0; + rel1.to_x: "elm.swallow.slot.bottom"; + rel1.to_y: "elm.swallow.slot.top"; + rel1.offset: -2 -6; + rel2.to_x: "elm.swallow.slot.bottom"; + rel2.to_y: "elm.swallow.slot.bottom"; rel2.offset: 1 5; image { normal: "bt_base2.png"; @@ -3690,6 +3705,12 @@ collections { transition: DECELERATE 0.5; target: "elm.swallow.slot.top"; } + program { name: "topshow3"; + signal: "elm,action,slot,top,show"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "button_image"; + } program { name: "tophide"; signal: "elm,action,slot,top,hide"; source: "elm"; @@ -3714,6 +3735,12 @@ collections { transition: DECELERATE 0.5; target: "elm.swallow.slot.bottom"; } + program { name: "bottomshow3"; + signal: "elm,action,slot,bottom,show"; + source: "elm"; + action: STATE_SET "bottom" 0.0; + target: "button_image"; + } program { name: "bottomhide"; signal: "elm,action,slot,bottom,hide"; source: "elm"; diff --git a/src/bin/test.c b/src/bin/test.c index 83d8b03..fee14a8 100644 --- a/src/bin/test.c +++ b/src/bin/test.c @@ -1456,7 +1456,7 @@ my_bt_19(void *data, Evas_Object *obj, void *event_info) elm_hoversel_item_add(bt, "Item 1", NULL, ELM_ICON_NONE, NULL, NULL); elm_hoversel_item_add(bt, "Item 2", NULL, ELM_ICON_NONE, NULL, NULL); elm_hoversel_item_add(bt, "Item 3", NULL, ELM_ICON_NONE, NULL, NULL); - elm_hoversel_item_add(bt, "Item 4", NULL, ELM_ICON_NONE, NULL, NULL); + elm_hoversel_item_add(bt, "Item 4 - Long Label Here", NULL, ELM_ICON_NONE, NULL, NULL); evas_object_size_hint_weight_set(bt, 0.0, 0.0); evas_object_size_hint_align_set(bt, 0.5, 0.5); elm_box_pack_end(bx, bt); -- 2.7.4