Hi, I'm not sure whether you prefer this kind of patches here or on the Trac. Please let me know if opening a ticket is more convenient for you.
>From 183e270a159b3d33a019f83761ecb518ee7122a7 Mon Sep 17 00:00:00 2001 From: Paul Fertser <[EMAIL PROTECTED]> Date: Wed, 26 Nov 2008 22:03:41 +0300 Subject: [PATCH] Show the name from the phonebook (in addition to the number) during call diff --git a/data/themes/toby/zhone_call.edc b/data/themes/toby/zhone_call.edc index 880bf3e..08c7dd9 100644 --- a/data/themes/toby/zhone_call.edc +++ b/data/themes/toby/zhone_call.edc @@ -39,7 +39,7 @@ parts { to: "swallow_main"; } rel2 { - relative: 1.0 0.4; + relative: 1.0 0.6; offset: -1 -1; to: "swallow_main"; } @@ -60,6 +60,32 @@ parts { to: "label_background"; } rel2 { + relative: 1.0 0.5; + offset: -1 -1; + to: "label_background"; + } + text { + font: FONT_NAME; + size: 1; + fit: 1 1; + align: 0.0 0.5; + } + } + } + part { + name: "sublabel"; + type: TEXT; + effect: SOFT_OUTLINE; + mouse_events: 0; + clip_to: "swallow_clip"; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.5; + offset: 0 0; + to: "label_background"; + } + rel2 { relative: 1.0 1.0; offset: -1 -1; to: "label_background"; diff --git a/src/zhone b/src/zhone index f26f0aa..0bc26e7 100755 --- a/src/zhone +++ b/src/zhone @@ -216,7 +216,9 @@ class pyphone_call(edje_group): self.call = id self.update_status(status) try: - self.part_text_set( "label", properties[ "peer" ] ) + self.part_text_set( "label", self.main.groups["contacts"].tryNumberToName( properties[ "peer" ] ) ) + self.part_text_set( "sublabel", properties[ "peer" ] ) + except KeyError: pass -- 1.5.2.2
-- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:[EMAIL PROTECTED]
_______________________________________________ Smartphones-userland mailing list Smartphones-userland@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland