diff options
author | Volker Schroer <3470424+dl1ksv@users.noreply.github.com> | 2019-07-02 17:42:48 +0200 |
---|---|---|
committer | Marc L <marcll@vt.edu> | 2019-07-09 16:37:23 -0400 |
commit | e8cada3fb30580ff6d5cc892c5e576ad4655646c (patch) | |
tree | 4d47f015a5be63bed6b8436c4d366c960bba3f22 | |
parent | 490b46dfb252b2d8a59216c76e521cdb0faf89db (diff) |
grc: Load builtin icon if no freedesktop is found
A missing freedesktop icon is not correctly handled.
-rw-r--r-- | grc/gui/MainWindow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/gui/MainWindow.py b/grc/gui/MainWindow.py index 2d95ee34e7..9675d8664a 100644 --- a/grc/gui/MainWindow.py +++ b/grc/gui/MainWindow.py @@ -72,13 +72,13 @@ class MainWindow(Gtk.ApplicationWindow): self.add(vbox) icon_theme = Gtk.IconTheme.get_default() - icon = icon_theme.load_icon("gnuradio-grc", 48, 0) + icon = icon_theme.lookup_icon("gnuradio-grc", 48, 0) if not icon: # Set default window icon self.set_icon_from_file(os.path.dirname(os.path.abspath(__file__)) + "/icon.png") else : # Use gnuradio icon - self.set_icon(icon) + self.set_icon(icon.load_icon()) # Create the menu bar and toolbar generate_modes = platform.get_generate_options() |