All pastes #609233 Raw Edit

Mine

public text v1 · immutable
·published 2007-07-08 19:27 UTC
rendered paste body
Index: src/gui.c
===================================================================
--- src/gui.c	(revision 3134)
+++ src/gui.c	(working copy)
@@ -63,7 +63,7 @@
 /*
  * Glade file path
  */
-#define GLADE_PATH "main_window.glade"
+#define GLADE_PATH DATADIR "/gtranslator/main_window.glade"
 
 /*
  * Glade widgets names
@@ -184,7 +184,6 @@
 	/*
 	 * Initialize glade library, load the interface
 	 */
-	//path_glade = g_strconcat(DATADIR, GLADE_PATH, NULL);
 	glade = glade_xml_new(GLADE_PATH, NULL, NULL);
     	
 	/*
Index: src/Makefile.am
===================================================================
--- src/Makefile.am	(revision 3134)
+++ src/Makefile.am	(working copy)
@@ -74,5 +74,13 @@
 #	
 #gtranslator_export_learn_buffer_SOURCES = \
 #	export-learn-buffer.c
-#	
-EXTRA_DIST = ChangeLog
+#
+
+gladedir = $(pkgdatadir)
+glade_DATA =  \
+	header_dialog.glade \
+	main_window.glade \
+	preferences.glade
+
+EXTRA_DIST = ChangeLog $(glade_DATA)
+