pygtk.require('2.0')
import gtk
from Constants import MIN_DIALOG_WIDTH, MIN_DIALOG_HEIGHT
-from .. platforms.base.Constants import VERSION
+from .. platforms.base.Constants import PACKAGE, VERSION
import Preferences
class TextDisplay(gtk.TextView):
def __init__(self):
"""AboutDialog constructor."""
gtk.AboutDialog.__init__(self)
+ self.set_name(PACKAGE)
self.set_version(VERSION)
- self.set_name('GNU Radio Companion')
self.set_license(__doc__)
self.set_copyright(__doc__.strip().splitlines()[0])
self.set_website('http://gnuradio.org/trac/wiki/GNURadioCompanion')
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
"""
-from .. platforms.base.Constants import VERSION
+from .. platforms.base.Constants import PACKAGE, VERSION
import traceback
import sys
# Special functions for specific program functionalities
###########################################################################
def send_init():
- send("""<<< Welcome to GNU Radio Companion %s >>>\n"""%VERSION)
+ send("""<<< Welcome to %s %s >>>\n"""%(PACKAGE, VERSION))
def send_page_switch(file_path):
send('\nShowing: "%s"\n'%file_path)
import os
-##The current version of this code
+##The package name.
+PACKAGE = '@PACKAGE@'
+
+##The current version.
VERSION = '@VERSION@'
##Location of external data files.
Constants.py: Makefile $(srcdir)/Constants.py.in
sed \
+ -e 's|@PACKAGE[@]|$(PACKAGE)|g' \
-e 's|@VERSION[@]|$(VERSION)|g' \
-e 's|@datadir[@]|$(grc_base_data_dir)|g' \
$(srcdir)/Constants.py.in > $@