[Xfce4-commits] <postler:master> Add icons for addressbook, faces, attachment, send
Christian Dywan
noreply at xfce.org
Sun May 30 22:22:02 CEST 2010
Updating branch refs/heads/master
to 2f6f43232eb739d1ccb4c78f58c4bdb6bca62fd4 (commit)
from 388729ed4ac75d40b32ff393d3b3be0a27ea010d (commit)
commit 2f6f43232eb739d1ccb4c78f58c4bdb6bca62fd4
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun May 30 21:00:39 2010 +0200
Add icons for addressbook, faces, attachment, send
postler/postler-app.vala | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/postler/postler-app.vala b/postler/postler-app.vala
index 64b5196..b60b787 100644
--- a/postler/postler-app.vala
+++ b/postler/postler-app.vala
@@ -12,10 +12,16 @@
const string GETTEXT_PACKAGE_APP = Config.GETTEXT_PACKAGE;
namespace Postler {
+ const string STOCK_ADDRESSBOOK = "stock_addressbook";
const string STOCK_EMBLEM_DRAFT = "emblem-draft";
const string STOCK_EMBLEM_IMPORTANT = "emblem-important";
+ const string STOCK_FACE_GRIN = "face-grin";
+ const string STOCK_FACE_SAD = "face-sad";
+ const string STOCK_FACE_WINK = "face-wink";
const string STOCK_INTERNET_MAIL = "internet-mail";
+ const string STOCK_MAIL_ATTACHMENT = "mail-attachment";
const string STOCK_MAIL_FORWARD = "mail-forward";
+ const string STOCK_MAIL_SEND = "stock_mail-send";
const string STOCK_MAIL_SEND_RECEIVE = "mail-send-receive";
const string STOCK_MAIL_MESSAGE_NEW = "mail-message-new";
const string STOCK_MAIL_REPLY_SENDER = "mail-reply-sender";
@@ -39,12 +45,18 @@ public class Postler.App : Unique.App {
}
const Gtk.StockItem[] stock_items = {
+ { STOCK_ADDRESSBOOK, N_("_Addressbook") },
{ STOCK_EMBLEM_DRAFT },
{ STOCK_EMBLEM_IMPORTANT },
+ { STOCK_FACE_GRIN },
+ { STOCK_FACE_SAD },
+ { STOCK_FACE_WINK },
+ { STOCK_MAIL_ATTACHMENT, null, 0, 0, "stock_attach" },
{ STOCK_MAIL_FORWARD, N_("_Forward") },
{ STOCK_MAIL_MESSAGE_NEW, N_("New _Message") },
{ STOCK_MAIL_REPLY_SENDER, N_("Reply To _Sender") },
{ STOCK_MAIL_REPLY_ALL, N_("Reply to _All") },
+ { STOCK_MAIL_SEND, N_("_Send Message"), 0, 0, STOCK_MAIL_SEND_RECEIVE },
{ STOCK_MAIL_SEND_RECEIVE, N_("_Receive Mail") },
{ STOCK_INBOX },
{ STOCK_OUTBOX },
@@ -57,11 +69,11 @@ public class Postler.App : Unique.App {
foreach (var item in stock_items) {
var icon_set = new Gtk.IconSet ();
var icon_source = new Gtk.IconSource ();
- /* if (item.translation_domain != null) {
+ if (item.translation_domain != null) {
icon_source.set_icon_name (item.translation_domain);
item.translation_domain = null;
icon_set.add_source (icon_source);
- } */
+ }
icon_source.set_icon_name (item.stock_id);
icon_set.add_source (icon_source);
factory.add (item.stock_id, icon_set);
More information about the Xfce4-commits
mailing list