[geary/bug/720347-gearmenu] Only export app menu if shell claims to support it



commit d5ec7a873cf58f63335dd10c531f5f41ffd28049
Author: Charles Lindsay <chaz yorba org>
Date:   Thu Dec 12 17:06:15 2013 -0800

    Only export app menu if shell claims to support it

 src/client/application/geary-controller.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index cd600c2..cae7dcc 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -428,7 +428,8 @@ public class GearyController : Geary.BaseObject {
             error("Unable to parse app_menu.interface: %s", e.message);
         }
         MenuModel menu = (MenuModel) builder.get_object("app-menu");
-        GearyApplication.instance.set_app_menu(menu);
+        if (Gtk.Settings.get_default().gtk_shell_shows_app_menu)
+            GearyApplication.instance.set_app_menu(menu);
     }
     
     private void open_account(Geary.Account account) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]