[gtranslator] Moved dialogs files to src folder



commit 7b19c0cccdadca6c34eeb61bd410b00daad55f01
Author: Daniel Mustieles <daniel mustieles gmail com>
Date:   Mon Apr 16 11:24:17 2012 +0200

    Moved dialogs files to src folder

 INSTALL                                     |    9 +-
 configure.ac                                |    1 -
 src/Makefile.am                             |   48 ++-
 src/dialogs/Makefile.am                     |   45 --
 src/dialogs/gtr-assistant.c                 |  474 ----------------
 src/dialogs/gtr-assistant.h                 |   72 ---
 src/dialogs/gtr-close-confirmation-dialog.c |  629 ---------------------
 src/dialogs/gtr-close-confirmation-dialog.h |   86 ---
 src/dialogs/gtr-file-dialogs.c              |   84 ---
 src/dialogs/gtr-file-dialogs.h              |   36 --
 src/dialogs/gtr-header-dialog.c             |  399 --------------
 src/dialogs/gtr-header-dialog.h             |   76 ---
 src/dialogs/gtr-header-dialog.ui            |  637 ----------------------
 src/dialogs/gtr-jump-dialog.c               |  185 -------
 src/dialogs/gtr-jump-dialog.h               |   76 ---
 src/dialogs/gtr-jump-dialog.ui              |  103 ----
 src/dialogs/gtr-languages-fetcher.c         |  492 -----------------
 src/dialogs/gtr-languages-fetcher.h         |   90 ---
 src/dialogs/gtr-languages-fetcher.ui        |  252 ---------
 src/dialogs/gtr-preferences-dialog.c        |  782 ---------------------------
 src/dialogs/gtr-preferences-dialog.h        |   67 ---
 src/dialogs/gtr-preferences-dialog.ui       |  751 -------------------------
 src/dialogs/gtr-profile-dialog.c            |  231 --------
 src/dialogs/gtr-profile-dialog.h            |   81 ---
 src/dialogs/gtr-profile-dialog.ui           |  295 ----------
 src/dialogs/gtr-search-dialog.c             |  752 --------------------------
 src/dialogs/gtr-search-dialog.h             |  150 -----
 src/dialogs/gtr-search-dialog.ui            |  318 -----------
 src/gtr-actions-edit.c                      |    4 +-
 src/gtr-actions-file.c                      |    2 +-
 src/gtr-actions-search.c                    |    2 +-
 src/gtr-application.c                       |    2 +-
 32 files changed, 50 insertions(+), 7181 deletions(-)
---
diff --git a/INSTALL b/INSTALL
index 7d1c323..a1e89e1 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,8 +1,8 @@
 Installation Instructions
 *************************
 
-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
+Inc.
 
    Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright
@@ -226,6 +226,11 @@ order to use an ANSI C compiler:
 
 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
 
+   HP-UX `make' updates targets which have the same time stamps as
+their prerequisites, which makes it generally unusable when shipped
+generated files such as `configure' are involved.  Use GNU `make'
+instead.
+
    On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
 parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
 a workaround.  If GNU CC is not installed, it is therefore recommended
diff --git a/configure.ac b/configure.ac
index 0d530b8..fff9379 100644
--- a/configure.ac
+++ b/configure.ac
@@ -293,7 +293,6 @@ plugins/translation-memory/Makefile
 plugins/translation-memory/gda/Makefile
 plugins/translation-memory/org.gnome.gtranslator.plugins.translation-memory.gschema.xml.in
 src/Makefile
-src/dialogs/Makefile
 src/toolbareditor/Makefile
 ])
 AC_OUTPUT
diff --git a/src/Makefile.am b/src/Makefile.am
index 6337609..f145417 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,17 +2,17 @@
 # Welcome to the gtranslator-automake-autoconf Wonderland!
 # --------------------------------------------------------
 
-SUBDIRS = toolbareditor \
-	  dialogs
+SUBDIRS = toolbareditor
 
-noinst_LTLIBRARIES = libgtranslator.la
+noinst_LTLIBRARIES = \
+	libgtranslator.la
 
 lib_LTLIBRARIES = libgtranslator-private.la
 
 INCLUDES = \
 	-I$(top_srcdir)						\
-	-I$(top_srcdir)/src/dialogs				\
 	-I$(top_srcdir)/src/toolbareditor			\
+	-I$(top_builddir)/src					\
 	$(GTRANSLATOR_CFLAGS)					\
 	$(GTKSPELL_CFLAGS)					\
 	$(WARN_CFLAGS)						\
@@ -21,11 +21,21 @@ INCLUDES = \
 	-DDATADIR=\""$(datadir)"\"				\
 	-DLIBDIR=\""$(libdir)"\"
 
+uidir = $(pkgdatadir)/ui
+ui_DATA =  \
+	gtr-preferences-dialog.ui \
+	gtr-search-dialog.ui \
+	gtr-header-dialog.ui \
+	gtr-profile-dialog.ui \
+	gtr-jump-dialog.ui \
+	gtr-languages-fetcher.ui
+
 bin_PROGRAMS = \
 	gtranslator
 
 gtranslator_SOURCES = main.c
 
+
 gtranslator_LDADD =			\
 	libgtranslator.la		\
 	libgtranslator-private.la	\
@@ -75,14 +85,23 @@ INST_H_FILES = \
 
 NOINST_H_FILES = \
 	gtr-actions.h \
+	gtr-assistant.h \
 	gtr-close-button.h \
+	gtr-close-confirmation-dialog.h \
 	gtr-dirs.h \
+	gtr-file-dialogs.h \
+	gtr-header-dialog.h \
 	gtr-history-entry.h \
 	gtr-io-error-info-bar.h \
-	gtr-message-table-model.h \
+	gtr-jump-dialog.h \
 	gtr-language.h \
+	gtr-languages-fetcher.h \
+	gtr-message-table-model.h \
 	gtr-plugins-engine.h \
+	gtr-preferences-dialog.h \
+	gtr-profile-dialog.h \
 	gtr-profile-manager.h \
+	gtr-search-dialog.h \
 	gtr-settings.h \
 	gtr-status-combo-box.h \
 	gtr-tab-label.h \
@@ -106,21 +125,30 @@ libgtranslator_c_files = \
 	gtr-actions-search.c \
 	gtr-actions-view.c \
 	gtr-application.c \
+	gtr-assistant.c \
 	gtr-close-button.c \
+	gtr-close-confirmation-dialog.c \
 	gtr-context.c \
 	gtr-dirs.c \
+	gtr-file-dialogs.c \
 	gtr-header.c \
+	gtr-header-dialog.c \
 	gtr-history-entry.c \
 	gtr-io-error-info-bar.c \
+	gtr-jump-dialog.c \
+	gtr-language.c \
+	gtr-languages-fetcher.c \
 	gtr-message-table.c \
 	gtr-message-table-model.c \
 	gtr-msg.c \
 	gtr-notebook.c \
-	gtr-language.c \
 	gtr-plugins-engine.c \
 	gtr-po.c \
+	gtr-preferences-dialog.c \
 	gtr-profile.c \
+	gtr-profile-dialog.c \
 	gtr-profile-manager.c \
+	gtr-search-dialog.c \
 	gtr-settings.c \
 	gtr-statusbar.c \
 	gtr-status-combo-box.c \
@@ -137,7 +165,6 @@ libgtranslator_la_SOURCES = \
 	$(INST_H_FILES)
 
 libgtranslator_la_LIBADD = \
-	dialogs/libdialogs.la \
 	toolbareditor/libtoolbareditor.la \
 	$(GTRANSLATOR_LIBS)
 
@@ -154,11 +181,11 @@ gtr-marshal.c: gtr-marshal.list $(GLIB_GENMARSHAL)
 	$(AM_V_GEN) $(GLIB_GENMARSHAL) $< --body --header --prefix=gtr_marshal > $@
 
 EXTRA_DIST =	\
+	$(ui_DATA)	\
 	gtr-marshal.list	\
 	gtr-enum-types.h.template	\
 	gtr-enum-types.c.template
 
-CLEANFILES = $(BUILT_SOURCES)
 
 if HAVE_INTROSPECTION
 -include $(INTROSPECTION_MAKEFILE)
@@ -178,9 +205,10 @@ gir_DATA = $(INTROSPECTION_GIRS)
 typelibdir = $(libdir)/gtranslator/girepository-1.0
 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
 
-CLEANFILES +=			\
+CLEANFILES =	\
 	$(gir_DATA)	\
-	$(typelib_DATA)
+	$(typelib_DATA)	\
+	$(BUILT_SOURCES)
 endif
 
 -include $(top_srcdir)/git.mk
diff --git a/src/gtr-actions-edit.c b/src/gtr-actions-edit.c
index e0275a9..3046b6f 100644
--- a/src/gtr-actions-edit.c
+++ b/src/gtr-actions-edit.c
@@ -24,8 +24,8 @@
 #include <glib.h>
 #include <glib/gi18n.h>
 
-#include "dialogs/gtr-header-dialog.h"
-#include "dialogs/gtr-preferences-dialog.h"
+#include "gtr-header-dialog.h"
+#include "gtr-preferences-dialog.h"
 #include "gtr-actions.h"
 #include "gtr-msg.h"
 #include "gtr-po.h"
diff --git a/src/gtr-actions-file.c b/src/gtr-actions-file.c
index b575894..1e63c6c 100644
--- a/src/gtr-actions-file.c
+++ b/src/gtr-actions-file.c
@@ -30,7 +30,7 @@
 #include <string.h>
 #include <gio/gio.h>
 
-#include "dialogs/gtr-close-confirmation-dialog.h"
+#include "gtr-close-confirmation-dialog.h"
 #include "gtr-actions.h"
 #include "gtr-application.h"
 #include "gtr-dirs.h"
diff --git a/src/gtr-actions-search.c b/src/gtr-actions-search.c
index 117a0f3..a4a84f9 100644
--- a/src/gtr-actions-search.c
+++ b/src/gtr-actions-search.c
@@ -38,7 +38,7 @@
 #include "gtr-utils.h"
 #include "gtr-view.h"
 #include "gtr-window.h"
-#include "dialogs/gtr-search-dialog.h"
+#include "gtr-search-dialog.h"
 
 
 #define GTR_SEARCH_DIALOG_KEY		"gtr-search-dialog-key"
diff --git a/src/gtr-application.c b/src/gtr-application.c
index ea788ec..4b540ae 100644
--- a/src/gtr-application.c
+++ b/src/gtr-application.c
@@ -24,7 +24,7 @@
 #include <config.h>
 #endif
 
-#include "dialogs/gtr-assistant.h"
+#include "gtr-assistant.h"
 #include "gtr-actions.h"
 #include "gtr-application.h"
 #include "gtr-debug.h"



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