summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorjblum2009-01-20 07:14:39 +0000
committerjblum2009-01-20 07:14:39 +0000
commit88470f93a4d2e9e6d7e5d39dac52115de0e5d1ca (patch)
tree3daff3bbaae82300c3a67df8c55e3216680edfa1 /grc
parentc0acd97cf9aa20bb66351bc05f698e95dd0c7eae (diff)
downloadgnuradio-88470f93a4d2e9e6d7e5d39dac52115de0e5d1ca.tar.gz
gnuradio-88470f93a4d2e9e6d7e5d39dac52115de0e5d1ca.tar.bz2
gnuradio-88470f93a4d2e9e6d7e5d39dac52115de0e5d1ca.zip
set the icon in both executables
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10266 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc')
-rwxr-xr-xgrc/scripts/grc7
-rwxr-xr-xgrc/scripts/usrp_probe16
-rw-r--r--grc/src/gui/ActionHandler.py3
3 files changed, 17 insertions, 9 deletions
diff --git a/grc/scripts/grc b/grc/scripts/grc
index 11f9c60d3..94fb4294c 100755
--- a/grc/scripts/grc
+++ b/grc/scripts/grc
@@ -18,6 +18,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
"""
+import pygtk
+pygtk.require('2.0')
+import gtk
+
from gnuradio.grc.platforms.base.Constants import VERSION
from optparse import OptionParser
@@ -35,5 +39,8 @@ and you are welcome to redistribute it.
(options, args) = parser.parse_args()
from gnuradio.grc.platforms.python.Platform import Platform
from gnuradio.grc.gui.ActionHandler import ActionHandler
+ #setup icon using icon theme
+ try: gtk.window_set_default_icon(gtk.IconTheme().load_icon('gnuradio-grc', 256, 0))
+ except: pass
ActionHandler(args, Platform())
diff --git a/grc/scripts/usrp_probe b/grc/scripts/usrp_probe
index eab57677d..c92603482 100755
--- a/grc/scripts/usrp_probe
+++ b/grc/scripts/usrp_probe
@@ -109,9 +109,13 @@ If the USRP cannot be found, make sure that the USRP is plugged-in and restart t
If the problem persists, there may be a problem with you gnuradio installation or USB 2.0.
'''%str(e))
-#enter the mainloop
-gtk.gdk.threads_init()
-gtk.gdk.threads_enter()
-USRPProbeWindow()
-gtk.main()
-gtk.gdk.threads_leave()
+if __name__ == '__main__':
+ #setup icon using icon theme
+ try: gtk.window_set_default_icon(gtk.IconTheme().load_icon('gnuradio-grc', 256, 0))
+ except: pass
+ #enter the mainloop
+ gtk.gdk.threads_init()
+ gtk.gdk.threads_enter()
+ USRPProbeWindow()
+ gtk.main()
+ gtk.gdk.threads_leave()
diff --git a/grc/src/gui/ActionHandler.py b/grc/src/gui/ActionHandler.py
index 4c5516311..91dd0fb45 100644
--- a/grc/src/gui/ActionHandler.py
+++ b/grc/src/gui/ActionHandler.py
@@ -53,9 +53,6 @@ class ActionHandler:
"""
self.clipboard = None
platform = Platform(platform)
- #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.get_all_actions(): action.connect('activate', self._handle_actions)
#setup the main window
self.main_window = MainWindow(self.handle_states, platform)