[Xfce4-commits] <postler:master> Fix typo and register contact-new-symbolic stock item

Christian Dywan noreply at xfce.org
Sat Jul 2 23:12:02 CEST 2011


Updating branch refs/heads/master
         to 8685dd1d6eb6bd2854cd8b6c6e0d24a1ae4d6adc (commit)
       from 38e2d0f2f707b41564c38f0c82441c4681535a54 (commit)

commit 8685dd1d6eb6bd2854cd8b6c6e0d24a1ae4d6adc
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Jul 2 23:09:57 2011 +0200

    Fix typo and register contact-new-symbolic stock item

 postler/postler-app.vala     |    4 ++++
 postler/postler-content.vala |    4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/postler/postler-app.vala b/postler/postler-app.vala
index cf95c9c..9b224ae 100644
--- a/postler/postler-app.vala
+++ b/postler/postler-app.vala
@@ -15,6 +15,8 @@ namespace Postler {
     const string STOCK_ARCHIVE = "gnome-mime-application-x-archive";
     const string STOCK_ARCHIVE_INSERT = "archive-insert";
     const string STOCK_ARCHIVE_UNDO = "edit-undo-archive";
+    const string STOCK_CONTACT_NEW_SYMBOLIC = "contact-new-symbolic";
+    const string STOCK_CONTACT_NEW = "contact-new";
     const string STOCK_EDIT_CLEAR_SYMBOLIC = "edit-clear-symbolic";
     const string STOCK_EDIT_FIND_SYMBOLIC = "edit-find-symbolic";
     const string STOCK_EMBLEM_DRAFT = "emblem-draft";
@@ -77,6 +79,8 @@ public class Postler.App : Unique.App {
         { STOCK_ARCHIVE },
         { STOCK_ARCHIVE_INSERT, N_("Archi_ve"), 0, 0, STOCK_ARCHIVE },
         { STOCK_ARCHIVE_UNDO, N_("_Unarchive") },
+        { STOCK_CONTACT_NEW_SYMBOLIC },
+        { STOCK_CONTACT_NEW },
         { STOCK_EDIT_CLEAR_SYMBOLIC, null, 0, 0, Gtk.STOCK_CLEAR },
         { STOCK_EDIT_FIND_SYMBOLIC, null, 0, 0, Gtk.STOCK_FIND },
         { STOCK_EMBLEM_DRAFT },
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 27e6ee7..abb7ca8 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -197,7 +197,7 @@ public class Postler.Content : WebKit.WebView {
         if (screen != null) {
             var icon_theme = Gtk.IconTheme.get_for_screen (screen);
             if (icon_theme.has_icon (icon_name + "-symbolic"))
-                real_icon_name + "-symbolic";
+                real_icon_name = icon_name + "-symbolic";
             else if (icon_theme.has_icon (icon_name))
                 real_icon_name = icon_name;
             markup = "<img src=\"%s\" title=\"%s\">".printf (
@@ -778,7 +778,7 @@ public class Postler.Content : WebKit.WebView {
                     reply_chunk.append_printf ("""
                         <span class="contact">%s</span>
                     """.printf (
-                    linkify_icon ("contact-new", _("Add contact"), "contact:%s:%s".printf (
+                    linkify_icon (STOCK_CONTACT_NEW, _("Add contact"), "contact:%s:%s".printf (
                         sender_name, html_escape (Contact.address_from_string (child.sender))))));
                 }
                 reply_chunk.append ("""



More information about the Xfce4-commits mailing list