Advertisement
Guest User

Solar patch

a guest
Oct 16th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. From 3f8baa79197633a5754882c6e889a4cb84450efa Mon Sep 17 00:00:00 2001
  2. Date: Fri, 16 Oct 2015 10:23:40 +0200
  3. Subject: [PATCH] gtk-fix
  4.  
  5. ---
  6. bin/solaar | 3 +++
  7. lib/solaar/ui/window.py | 4 ++--
  8. 2 files changed, 5 insertions(+), 2 deletions(-)
  9.  
  10. diff --git a/bin/solaar b/bin/solaar
  11. index c90c873..ba32a8e 100755
  12. --- a/bin/solaar
  13. +++ b/bin/solaar
  14. @@ -20,6 +20,9 @@
  15.  
  16. from __future__ import absolute_import, unicode_literals
  17.  
  18. +import gi
  19. +gi.require_version('Gtk', '3.0')
  20. +gi.require_version('Notify', '0.7')
  21.  
  22. def init_paths():
  23. """Make the app work in the source tree."""
  24. diff --git a/lib/solaar/ui/window.py b/lib/solaar/ui/window.py
  25. index b56707a..3f1eb1d 100644
  26. --- a/lib/solaar/ui/window.py
  27. +++ b/lib/solaar/ui/window.py
  28. @@ -731,8 +731,8 @@ _window = None
  29.  
  30.  
  31. def init():
  32. - Gtk.Window.set_default_icon_name(NAME.lower())
  33. - Gtk.Window.set_default_icon_from_file(_icons.icon_file(NAME.lower()))
  34. +# Gtk.Window.set_default_icon_name(NAME.lower())
  35. +# Gtk.Window.set_default_icon_from_file(_icons.icon_file(NAME.lower()))
  36.  
  37. global _model, _tree, _details, _info, _empty, _window
  38. _model = Gtk.TreeStore(*_COLUMN_TYPES)
  39. --
  40. 2.6.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement