Skip to content

Commit

Permalink
Look for relative ui file first, then for system one
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Aug 9, 2015
1 parent eb51df8 commit b43a6bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/support.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ GdkPixbuf* get_stock_pixbuf(const char* filename, gint size) {
*/
gchar* get_ui_file(const char* filename) {
gchar* path;
path = g_build_filename(PACKAGE_DATA_DIR,"pnmixer","ui",filename,NULL);
path = g_build_filename(".","data",filename,NULL);
if (g_file_test (path, G_FILE_TEST_EXISTS))
return path;
g_free(path);
path = g_build_filename(".","data",filename,NULL);
path = g_build_filename(PACKAGE_DATA_DIR,"pnmixer","ui",filename,NULL);
if (g_file_test (path, G_FILE_TEST_EXISTS))
return path;
g_free(path);
Expand Down

0 comments on commit b43a6bc

Please sign in to comment.