[chronojump] Adwaita theme on all systems
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Adwaita theme on all systems
- Date: Sun, 19 Mar 2017 23:56:43 +0000 (UTC)
commit a18fefccf60d17f2ec509f5f3b7a215e079c96bb
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Mar 20 00:55:30 2017 +0100
Adwaita theme on all systems
Makefile.am | 2 +-
src/chronojump.cs | 4 +++-
src/util.cs | 6 ++++++
3 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 020df0f..5d32633 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,7 @@ CLEANFILES = win32/Makefile win32/chronojump_innosetup.iss
ACLOCAL_AMFLAGS = -I build/m4 -I build/m4/shave -I build/m4/shamrock
SUBDIRS = build chronopic-firmware rfid \
- encoder r-scripts libcesarplayer CesarPlayer src po manual #chronojump_server (disabled)
+ encoder r-scripts data libcesarplayer CesarPlayer src po manual #chronojump_server (disabled)
if OSTYPE_LINUX
SUBDIRS += chronopic-tests #chronojump_server (disabled)
diff --git a/src/chronojump.cs b/src/chronojump.cs
index d90404b..2e3d4e1 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -78,7 +78,9 @@ public class ChronoJump
var rBinPath = "";
baseDirectory = Util.GetPrefixDir();
- //Rc.AddDefaultFile
("/home/xavier/informatica/progs_meus/chronojump/chronojump/data/theme/gtk-2.0/gtkrc");
+ //location of gtkrc file
+ Rc.AddDefaultFile (Util.GetThemeFile());
+ LogB.Information("gtk theme:" + Util.GetThemeFile());
if(UtilAll.IsWindows()) {
//Environment.SetEnvironmentVariable ("R_HOME", RelativeToPrefix ("library"));
diff --git a/src/util.cs b/src/util.cs
index 470deee..f5abc8d 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -955,6 +955,12 @@ public class Util
/********** end of multimedia paths ************/
+ public static string GetThemeDir() {
+ return Path.Combine(GetDataDir(), "theme");
+ }
+ public static string GetThemeFile() {
+ return Path.Combine(GetThemeDir(), "gtk-2.0" + Path.DirectorySeparatorChar + "gtkrc");
+ }
/********** start of encoder paths ************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]