[pkg-fso-commits] [SCM] libframeworkd-phonegui branch, upstream, updated. 640da47bfcff755388d0fb8f443eb34e0dea3c72

Klaus Kurzmann mok at fluxnetz.de
Sat Dec 27 20:50:09 UTC 2008


The following commit has been merged in the upstream branch:
commit 97c591e319623a3bfb37dfa6353f4bb66b6d6940
Author: Klaus Kurzmann <mok at fluxnetz.de>
Date:   Mon Dec 22 12:00:54 2008 +0100

    use ***** if peerNumber is not set
    
    on incoming calls without peerNumber (number is suppressed)
    set the number to ***** but pass an empty number to the
    display.
    
    Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>

diff --git a/ophonekitd/src/ophonekitd-main.c b/ophonekitd/src/ophonekitd-main.c
index eccb28a..9856bc8 100644
--- a/ophonekitd/src/ophonekitd-main.c
+++ b/ophonekitd/src/ophonekitd-main.c
@@ -188,6 +188,9 @@ void ophonekitd_call_status_handler(const int call_id, const int status, GHashTa
     if(peerNumber != NULL) {
         number = g_strdup_value_contents (peerNumber);
     }
+    else {
+        number = "*****";
+    }
 
     switch(status) {
         case CALL_STATUS_INCOMING:
@@ -438,8 +441,11 @@ void cache_phonebook_entry(GValueArray *entry, void *data) {
 
 
 char *cache_phonebook_lookup(char *number) {
-    if (!number || !*number)
-        return ("unknown");
+    g_debug("looking for '%s' in contacts_cache", number);
+    if (!number || !*number || !strcmp(number, "*****")) {
+        g_debug("contact_cache: got unknown number");
+        return ("");
+    }
     if (*number == '"') {
         number++;
         char *s = number;
@@ -453,7 +459,6 @@ char *cache_phonebook_lookup(char *number) {
     }
 
     char *name = g_hash_table_lookup(contact_cache, number);
-    g_debug("looking for '%s' in contacts_cache", number);
     if (name)
         g_debug("found name '%s'", name);
     if (name && *name)

-- 
libframeworkd-phonegui



More information about the pkg-fso-commits mailing list