diff options
author | Sebastian Reichel <sre@ring0.de> | 2018-06-29 21:05:46 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2018-07-15 22:59:57 +0200 |
commit | cce1953eb1f8fe8c927a1720c95caed45b71ef1d (patch) | |
tree | 4ce0e1a234360ebb99f8bf6b6f2fa5d8ab842c55 /src/curses-ui/curses-ui.vala | |
parent | 2d532b4a537327d66a15d20dc2e8aaad9b5f1dfc (diff) | |
download | serial-barcode-scanner-cce1953eb1f8fe8c927a1720c95caed45b71ef1d.tar.bz2 |
all: simplify datadir configuration
This simplifies the datadir configuration and removes the expectation,
that the code is executed from the repository. It should now be possible
to install this into the system like any other common Linux application.
Diffstat (limited to 'src/curses-ui/curses-ui.vala')
-rw-r--r-- | src/curses-ui/curses-ui.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/curses-ui/curses-ui.vala b/src/curses-ui/curses-ui.vala index 0cd6281..e98c6ea 100644 --- a/src/curses-ui/curses-ui.vala +++ b/src/curses-ui/curses-ui.vala @@ -23,7 +23,7 @@ public class CursesUI { //StatusPanel statuswin; MessageBoxOverlay mbOverlay; - public CursesUI(string binarylocation) { + public CursesUI(string datadir) { /* unicode support */ Intl.setlocale(LocaleCategory.CTYPE, ""); @@ -40,7 +40,7 @@ public class CursesUI { Curses.init_pair(2, Curses.Color.WHITE, Curses.Color.RED); /* initialize widgets */ - banner = new Logo(binarylocation); + banner = new Logo(datadir); //statuswin = new StatusPanel(); messages = new MessageBox(); clkwin = new ClockWindow(); |