[Xfce4-commits] <postler:master> Add 'Print' to message content context menu

Christian Dywan noreply at xfce.org
Sun Jul 18 15:40:02 CEST 2010


Updating branch refs/heads/master
         to 566f902470fbb0e962cf6ae4a102864877b78af1 (commit)
       from c85faaaab4d38d7058742d7dc17e2ef8c277bc27 (commit)

commit 566f902470fbb0e962cf6ae4a102864877b78af1
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jul 7 23:25:34 2010 +0200

    Add 'Print' to message content context menu

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

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index f76a491..ecb2887 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -193,6 +193,12 @@ public class Postler.Content : WebKit.WebView {
         menuitem.show ();
         menuitem.sensitive = last_location != null;
         menu.append (menuitem);
+        menuitem = new Gtk.ImageMenuItem.from_stock (Gtk.STOCK_PRINT, null);
+        menuitem.activate.connect ((menuitem) => {
+            get_main_frame ().print (); });
+        menuitem.show ();
+        menuitem.sensitive = last_location != null;
+        menu.append (menuitem);
     }
 
     public void clear () {



More information about the Xfce4-commits mailing list