[gnome-calculator] Make WM_CLASS X property match the desktop file



commit ad486fbe4aa54e6e680e0ee91e39d294f8b014b3
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Fri Aug 2 18:53:16 2013 -0500

    Make WM_CLASS X property match the desktop file
    
    GNOME Shell expects this; for details, see
    https://wiki.gnome.org/GnomeShell/ApplicationBased
    
    This also fixes an issue with the name of the app menu in shells that do
    not display the app menu.  The app menu (displayed inside the window)
    was titled "Application" instead of "Calculator."
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699073

 src/gnome-calculator.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-calculator.vala b/src/gnome-calculator.vala
index 626bcd8..3940598 100644
--- a/src/gnome-calculator.vala
+++ b/src/gnome-calculator.vala
@@ -284,6 +284,9 @@ public class Calculator : Gtk.Application
 
         program_name = Path.get_basename (args [0]);
 
+        /* GNOME Shell expects WM_CLASS to match the desktop file */
+        Environment.set_prgname ("gcalctool");
+
         var options = new OptionEntry [4];
 
         string? solve_equation = null;


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