[gnome-games/sudoku-vala] Load UI file from installed location



commit 1a2dcda5bb69ec8a1b246efc78a1cddc7fad6a52
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Apr 11 14:33:22 2011 +1000

    Load UI file from installed location

 gnome-sudoku/src/Makefile.am       |    2 +-
 gnome-sudoku/src/gnome-sudoku.vala |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-sudoku/src/Makefile.am b/gnome-sudoku/src/Makefile.am
index f7ae89a..73a6c73 100644
--- a/gnome-sudoku/src/Makefile.am
+++ b/gnome-sudoku/src/Makefile.am
@@ -7,7 +7,7 @@ gnome_sudoku_SOURCES = \
 	sudoku-view.vala
 
 gnome_sudoku_CFLAGS = \
-	-DPKGDATADIR=\"@datadir@/glchess\" \
+	-DPKGDATADIR=\"@datadir@/gnome-sudoku\" \
 	-DLOCALEDIR=\"@localedir \" \
 	$(GTK_CFLAGS) \
 	$(GMODULE_CFLAGS) \
diff --git a/gnome-sudoku/src/gnome-sudoku.vala b/gnome-sudoku/src/gnome-sudoku.vala
index 4de2d8e..dfd83dd 100644
--- a/gnome-sudoku/src/gnome-sudoku.vala
+++ b/gnome-sudoku/src/gnome-sudoku.vala
@@ -18,7 +18,7 @@ public class Application
         builder = new Gtk.Builder ();
         try
         {
-            builder.add_from_file ("data/gnome-sudoku.ui");
+            builder.add_from_file (Path.build_filename (Config.PKGDATADIR, "gnome-sudoku.ui", null));
         }
         catch (GLib.Error e)
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]