From dfa9d380c02664fc4a0acd89f5f0dacc949b426a Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 16 Jun 2005 02:41:48 +0000 Subject: [PATCH] oops - actuallly support the title for the winlist box SVN revision: 15353 --- data/themes/default_winlist.edc | 30 +++++++++++++++++++++++++++++- src/bin/e_winlist.c | 2 +- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/data/themes/default_winlist.edc b/data/themes/default_winlist.edc index 0d6aef3cf..fbb74164f 100644 --- a/data/themes/default_winlist.edc +++ b/data/themes/default_winlist.edc @@ -85,8 +85,9 @@ group { state: "default" 0.0; color: 0 0 0 0; rel1 { - relative: 0.0 0.0; + relative: 0.0 1.0; offset: 16 16; + to_y: "title"; } rel2 { relative: 1.0 0.0; @@ -159,6 +160,33 @@ group { } } } + part { + name: "title"; + type: TEXT; + effect: SOFT_SHADOW; + mouse_events: 0; + description { + state: "default" 0.0; + align: 0.5 0.0; + rel1 { + relative: 0.0 0.0; + offset: 16 16; + } + rel2 { + relative: 1.0 0.0; + offset: -17 16; + } + color: 255 255 255 255; + color3: 0 0 0 22; + text { + text: "Title goes here"; + font: "Edje Vera Bold"; + size: 10; + min: 0 1; + align: 0.5 0.0; + } + } + } part { name: "title_bg"; description { diff --git a/src/bin/e_winlist.c b/src/bin/e_winlist.c index aef01015b..a1c3bbf57 100644 --- a/src/bin/e_winlist.c +++ b/src/bin/e_winlist.c @@ -112,7 +112,7 @@ e_winlist_show(E_Zone *zone) e_box_orientation_set(o, 0); e_box_homogenous_set(o, 1); edje_object_part_swallow(bg_object, "list_swallow", o); - edje_object_part_text_set(bg_object, "title_text", _("Select a window")); + edje_object_part_text_set(bg_object, "title", _("Select a window")); evas_object_show(o); desk = e_desk_current_get(winlist->zone);