[folks] Clean up some bits related to bgo#627403



commit e89332de2fd99f8646bb0a0ac73aab17cb4eb747
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Mon May 28 11:02:26 2012 -0700

    Clean up some bits related to bgo#627403
    
    * make get_default_message_from_presence_type() return an unowned string
    * add @param and @return lines to said function
    * add presence-details.vala to translated files

 folks/presence-details.vala |    6 +++++-
 po/POTFILES.in              |    1 +
 po/POTFILES.skip            |    1 +
 3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/folks/presence-details.vala b/folks/presence-details.vala
index 4dbd3bf..ac1fa9c 100644
--- a/folks/presence-details.vala
+++ b/folks/presence-details.vala
@@ -144,9 +144,13 @@ public interface Folks.PresenceDetails : Object
   /**
    * The default message for a presence type.
    *
+   * @param type a { link PresenceType} for which to retrieve a translated
+   * display string
+   * @return a default translated display string for the given
+   * { link PresenceType}
    * @since UNRELEASED
    */
-  public static string get_default_message_from_type (PresenceType type)
+  public static unowned string get_default_message_from_type (PresenceType type)
     {
       switch (type)
         {
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 20b9f9c..6de8c54 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -24,6 +24,7 @@ folks/note-details.vala
 [type: gettext/gsettings]folks/org.freedesktop.folks.gschema.xml.in
 folks/phone-details.vala
 folks/postal-address-details.vala
+folks/presence-details.vala
 folks/role-details.vala
 folks/url-details.vala
 folks/web-service-details.vala
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index a27b962..79f2443 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -22,6 +22,7 @@ folks/name-details.c
 folks/note-details.c
 folks/phone-details.c
 folks/postal-address-details.c
+folks/presence-details.c
 folks/role-details.c
 folks/url-details.c
 folks/web-service-details.c



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]