[gnome-tweak-tool] show the shell version and mode in the about menu



commit cb573a139ee31cdc07209807bafa824af25c5fb6
Author: John Stowers <john stowers gmail com>
Date:   Sun Jul 21 16:52:47 2013 +0200

    show the shell version and mode in the about menu
    
    Conflicts:
        gtweak/app.py

 gtweak/app.py |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gtweak/app.py b/gtweak/app.py
index 8e7d7bd..17df43e 100644
--- a/gtweak/app.py
+++ b/gtweak/app.py
@@ -24,6 +24,7 @@ import gtweak
 from gtweak.tweakmodel import TweakModel
 from gtweak.tweakview import TweakView
 from gtweak.utils import SchemaList
+from gtweak.gshellwrapper import GnomeShellFactory
         
 class GnomeTweakTool(Gtk.Application):
     def __init__(self):
@@ -82,14 +83,20 @@ class GnomeTweakTool(Gtk.Application):
             s.reset()
         dialog.destroy()
             
-            
     def help_cb(self, action, parameter):
         print "This does nothing. It is only a demonstration."
 
     def about_cb(self, action, parameter):
         aboutdialog = Gtk.AboutDialog()
         aboutdialog.set_title("About Gnome Tweak Tool")
-        aboutdialog.set_program_name("Gnome Tweak Tool")            
+        aboutdialog.set_program_name("Gnome Tweak Tool")
+
+        _shell = GnomeShellFactory().get_shell()
+        if _shell is not None:
+            aboutdialog.set_comments("Gnome Shell v%s (%s mode)" % (_shell.version, _shell.mode))
+        else:
+            aboutdialog.set_comments("Gnome Shell not running")
+
         aboutdialog.set_copyright("Copyright \xc2\xa9 2011 - 2013 John Stowers.")
         aboutdialog.set_logo_icon_name("gnome-tweak-tool")
         aboutdialog.set_website("http://live.gnome.org/GnomeTweakTool";) 


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