[Xfce4-commits] <postler:master> Add Report a Problem... to the app menu

Christian Dywan noreply at xfce.org
Tue Feb 15 00:36:02 CET 2011


Updating branch refs/heads/master
         to 8c2f4a028b86744348d877e68d444aefc6cb1dbb (commit)
       from 9dc4ddf16b8487223e38a3091748ca409651b165 (commit)

commit 8c2f4a028b86744348d877e68d444aefc6cb1dbb
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Feb 15 00:20:38 2011 +0100

    Add Report a Problem... to the app menu
    
    Fixes: https://bugs.launchpad.net/postler/+bug/718943

 postler/postler-app.vala    |    2 ++
 postler/postler-bureau.vala |    7 +++++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/postler/postler-app.vala b/postler/postler-app.vala
index 9d3b878..5d09869 100644
--- a/postler/postler-app.vala
+++ b/postler/postler-app.vala
@@ -44,6 +44,7 @@ namespace Postler {
     const string STOCK_OUTBOX = "mail-outbox";
     const string STOCK_SENT_MAIL = "mail-sent";
     const string STOCK_USER_TRASH = "user-trash";
+    const string STOCK_REPORT_BUG = "lpi-bug";
 }
 
 public class Postler.App : Unique.App {
@@ -101,6 +102,7 @@ public class Postler.App : Unique.App {
         { STOCK_IMAGE, null, 0, 0, "gnome-mime-image" },
         { STOCK_INBOX, null, 0, 0, "stock_inbox" },
         { STOCK_OUTBOX, null, 0, 0, "stock_outbox" },
+        { STOCK_REPORT_BUG, null, 0, 0, "bug-buddy" },
         { STOCK_SENT_MAIL, null, 0, 0, "stock_sent-mail" },
         { STOCK_USER_TRASH }
     };
diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index 2e4658d..dc0be24 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -80,6 +80,7 @@ public class Postler.Bureau : Gtk.Window {
                 <separator/>
                 <menuitem action="Fullscreen"/>
                 <menuitem action="AccountNew"/>
+                <menuitem action="ReportBug"/>
                 <menuitem action="About"/>
             </popup>
             <toolbar name="search_options">
@@ -312,6 +313,10 @@ public class Postler.Bureau : Gtk.Window {
         return true;
     }
 
+    void action_report_bug () {
+        Postler.App.show_uri (get_screen (), "https://bugs.launchpad.net/postler/+filebug");
+    }
+
     void action_view_source () {
         Postler.App.spawn_module ("source", content.last_location);
     }
@@ -400,6 +405,8 @@ public class Postler.Bureau : Gtk.Window {
           N_("View the source of the message"), action_view_source },
         { "AccountNew", STOCK_ACCOUNT_NEW, null, "",
           N_("Setup a new account"), action_account_new },
+        { "ReportBug", STOCK_REPORT_BUG, N_("Report a Problem..."), "",
+          N_("Report a Problem..."), action_report_bug },
         { "Help", null, N_("_Help") },
         { "About", Gtk.STOCK_ABOUT, null, "",
           N_("Show information about the program"), action_about }



More information about the Xfce4-commits mailing list