diff options
author | David <dbphillipsnz@gmail.com> | 2014-05-29 15:39:37 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-05-29 15:39:37 +1200 |
commit | 07b159aa218d2291a4c3858c38b120ec102e4d98 (patch) | |
tree | db2622106f7f710a86ec21d4c45a2406ed9a7858 /tray.c | |
parent | 8745ade3f275eada5341bb443cdb7afb2fdea1d7 (diff) | |
download | paramano-07b159aa218d2291a4c3858c38b120ec102e4d98.tar.xz |
User can now specify theme dir
Diffstat (limited to 'tray.c')
-rw-r--r-- | tray.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -18,7 +18,6 @@ #include "tray.h" -//#include "widget_manager.h" #include "getfreq.h" #include "getcore.h" #include "getgov.h" @@ -262,7 +261,7 @@ void tray_init() { tray_set_defaults(); tray = gtk_status_icon_new(); - char* icon_file = g_strconcat("/usr/share/trayfreq/cpufreq-0.png", NULL); + char* icon_file = g_strconcat(_DEFAULT_THEME, "/cpufreq-0.png", NULL); debug("Setting icon to '%s'\n",icon_file); gtk_status_icon_set_from_file(tray, icon_file); @@ -313,7 +312,7 @@ void tray_update_icon_percent() char adjusted_percent_string[] = {'\0', '\0', '\0', '\0'}; sprintf(adjusted_percent_string, "%i", adjusted_percent); - char* file = g_strconcat("/usr/share/trayfreq/cpufreq-", adjusted_percent_string, ".png", NULL); + char* file = g_strconcat(_DEFAULT_THEME, "/cpufreq-", adjusted_percent_string, ".png", NULL); debug("Setting tray icon to '%s'\n",file); gtk_status_icon_set_from_file(tray, file); |