set the icon in both executables
[debian/gnuradio] / grc / scripts / usrp_probe
index eab57677d89494619d585133dcc17022ce753c68..c926034823a0595a9c663b5b9209bd391847b682 100755 (executable)
@@ -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()