diff options
author | jblum | 2008-09-28 03:35:21 +0000 |
---|---|---|
committer | jblum | 2008-09-28 03:35:21 +0000 |
commit | 0174f42a56c3e95008ffc6a9771f2bb2d155f0f5 (patch) | |
tree | 12dc3767a96b89d4e428e44691f01b4ef9e24d99 /grc/src/gui/ActionHandler.py | |
parent | ff9c2110d832a0d3b097eab9ca31562f91566404 (diff) | |
download | gnuradio-0174f42a56c3e95008ffc6a9771f2bb2d155f0f5.tar.gz gnuradio-0174f42a56c3e95008ffc6a9771f2bb2d155f0f5.tar.bz2 gnuradio-0174f42a56c3e95008ffc6a9771f2bb2d155f0f5.zip |
freedesktop
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9668 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/gui/ActionHandler.py')
-rw-r--r-- | grc/src/gui/ActionHandler.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/grc/src/gui/ActionHandler.py b/grc/src/gui/ActionHandler.py index 95825bd0a..7558d16ae 100644 --- a/grc/src/gui/ActionHandler.py +++ b/grc/src/gui/ActionHandler.py @@ -18,9 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ import os -import signal -from .. platforms.base.Constants import PY_GTK_ICON, IMAGE_FILE_EXTENSION -from Constants import DIR_LEFT, DIR_RIGHT +import signal +from Constants import DIR_LEFT, DIR_RIGHT, IMAGE_FILE_EXTENSION import Actions import pygtk pygtk.require('2.0') @@ -54,7 +53,9 @@ class ActionHandler: """ self.clipboard = None platform = Platform(platform) - if PY_GTK_ICON: gtk.window_set_default_icon_from_file(PY_GTK_ICON) + #setup icon using icon theme + try: gtk.window_set_default_icon(gtk.IconTheme().load_icon('gnuradio-grc', 256, 0)) + except: pass for action in Actions.ACTIONS_LIST: action.connect('activate', self._handle_actions) #setup the main window self.main_window = MainWindow(self.handle_states, platform) |