[Xfce4-commits] <postler:master> Implement an inline reply bar in the viewer

Christian Dywan noreply at xfce.org
Mon Jul 4 23:58:02 CEST 2011


Updating branch refs/heads/master
         to c9d5696271978c33c427f5a80e3c5f705ab26a45 (commit)
       from 69c8e550338f24360997e0a5d27de5bce72fc8bf (commit)

commit c9d5696271978c33c427f5a80e3c5f705ab26a45
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Jul 3 23:09:01 2011 +0200

    Implement an inline reply bar in the viewer

 postler/postler-viewer.vala |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/postler/postler-viewer.vala b/postler/postler-viewer.vala
index 90ca738..7a929ce 100644
--- a/postler/postler-viewer.vala
+++ b/postler/postler-viewer.vala
@@ -48,6 +48,35 @@ public class Postler.Viewer : Gtk.VBox {
         content.notify["current-part"].connect (notify_current_part);
         attachments.selection_changed.connect (part_selected);
 
+        /* Inline reply */
+        var replybar = new Gtk.VBox (false, 0);
+        replybar.set_border_width (8);
+        pack_start (replybar, false, false, 0);
+        var reply_text = new Elementary.Entry (_("Reply to All"));
+        replybar.pack_start (reply_text, false, false, 0);
+        var hbox = new Gtk.HBox (false, 4);
+        replybar.pack_start (hbox, false, false, 0);
+        var toolbutton = new Gtk.ToolButton.from_stock (STOCK_FACE_SMILE_BIG);
+        toolbutton.tooltip_text = _("Insert big smile");
+        toolbutton.sensitive = false;
+        hbox.pack_start (toolbutton, false, false, 0);
+        toolbutton = new Gtk.ToolButton.from_stock (Gtk.STOCK_INDENT);
+        toolbutton.tooltip_text = _("Quote the selected text");
+        toolbutton.sensitive = false;
+        hbox.pack_start (toolbutton, false, false, 0);
+        toolbutton = new Gtk.ToolButton.from_stock (STOCK_MAIL_ATTACHMENT);
+        toolbutton.tooltip_text = _("Attach a file");
+        toolbutton.sensitive = false;
+        hbox.pack_start (toolbutton, false, false, 0);
+        var button = new Gtk.Button.with_mnemonic ("S_end");
+        button.set_size_request (100, 0);
+        button.sensitive = false;
+        hbox.pack_end (button, false, false, 0);
+        button = new Gtk.Button.with_mnemonic ("_Save");
+        button.set_size_request (100, 0);
+        button.sensitive = false;
+        hbox.pack_end (button, false, false, 0);
+
         findbar = new Gtk.Toolbar ();
         pack_start (findbar, false, false, 0);
         find_entry = new Gtk.Entry ();



More information about the Xfce4-commits mailing list