11
									
								
								configure.ac
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								configure.ac
									
									
									
									
									
								
							@@ -172,6 +172,16 @@ PKG_CHECK_MODULES(EGG_SMCLIENT, [sm >= 1.0.0])
 | 
				
			|||||||
AC_SUBST(EGG_SMCLIENT_CFLAGS)
 | 
					AC_SUBST(EGG_SMCLIENT_CFLAGS)
 | 
				
			||||||
AC_SUBST(EGG_SMCLIENT_LIBS)
 | 
					AC_SUBST(EGG_SMCLIENT_LIBS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Introspection
 | 
				
			||||||
 | 
					GOBJECT_INTROSPECTION_CHECK([0.9.3])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if test "$found_introspection" = "yes"; then
 | 
				
			||||||
 | 
						have_introspection=yes
 | 
				
			||||||
 | 
						AC_DEFINE([HAVE_INTROSPECTION], [1], [Define to enable GObject Introspection])
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
						have_introspection=no
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dnl ================================================================
 | 
					dnl ================================================================
 | 
				
			||||||
dnl GSettings related settings
 | 
					dnl GSettings related settings
 | 
				
			||||||
dnl ================================================================
 | 
					dnl ================================================================
 | 
				
			||||||
@@ -265,5 +275,6 @@ Configuration:
 | 
				
			|||||||
	Compiler:				${CC}
 | 
						Compiler:				${CC}
 | 
				
			||||||
	Spell Plugin enabled:	$enable_enchant
 | 
						Spell Plugin enabled:	$enable_enchant
 | 
				
			||||||
	Gvfs metadata enabled:	$enable_gvfs_metadata
 | 
						Gvfs metadata enabled:	$enable_gvfs_metadata
 | 
				
			||||||
 | 
						GObject Introspection:	${have_introspection}
 | 
				
			||||||
	Tests enabled:			$enable_tests
 | 
						Tests enabled:			$enable_tests
 | 
				
			||||||
"
 | 
					"
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										28
									
								
								debian/control
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								debian/control
									
									
									
									
										vendored
									
									
								
							@@ -4,10 +4,12 @@ Priority: optional
 | 
				
			|||||||
Maintainer: Linux Mint <root@linuxmint.com>
 | 
					Maintainer: Linux Mint <root@linuxmint.com>
 | 
				
			||||||
Build-Depends: autotools-dev,
 | 
					Build-Depends: autotools-dev,
 | 
				
			||||||
               debhelper (>= 9),
 | 
					               debhelper (>= 9),
 | 
				
			||||||
 | 
					               gobject-introspection,
 | 
				
			||||||
               gtk-doc-tools,
 | 
					               gtk-doc-tools,
 | 
				
			||||||
               intltool,
 | 
					               intltool,
 | 
				
			||||||
               iso-codes,
 | 
					               iso-codes,
 | 
				
			||||||
               libenchant-dev,
 | 
					               libenchant-dev,
 | 
				
			||||||
 | 
					               libgirepository1.0-dev,
 | 
				
			||||||
               libglib2.0-dev,
 | 
					               libglib2.0-dev,
 | 
				
			||||||
               libgtk-3-dev,
 | 
					               libgtk-3-dev,
 | 
				
			||||||
               libgtksourceview-3.0-dev,
 | 
					               libgtksourceview-3.0-dev,
 | 
				
			||||||
@@ -137,3 +139,29 @@ Description: generic text editor (documentation files)
 | 
				
			|||||||
 ChangeLogs, and adjusting indentation levels.
 | 
					 ChangeLogs, and adjusting indentation levels.
 | 
				
			||||||
 .
 | 
					 .
 | 
				
			||||||
 This package contains the documentation files.
 | 
					 This package contains the documentation files.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Package: gir1.2-xed
 | 
				
			||||||
 | 
					Architecture: any
 | 
				
			||||||
 | 
					Depends: ${gir:Depends},
 | 
				
			||||||
 | 
					         ${misc:Depends},
 | 
				
			||||||
 | 
					         ${shlibs:Depends},
 | 
				
			||||||
 | 
					Description: GObject introspection data for Xed
 | 
				
			||||||
 | 
					 Xed is a text editor which supports most standard editor features,
 | 
				
			||||||
 | 
					 extending this basic functionality with other features not usually
 | 
				
			||||||
 | 
					 found in simple text editors. Xed is a graphical application which
 | 
				
			||||||
 | 
					 supports editing multiple text files in one window (known sometimes as
 | 
				
			||||||
 | 
					 tabs or MDI).
 | 
				
			||||||
 | 
					 .
 | 
				
			||||||
 | 
					 Xed fully supports international text through its use of the
 | 
				
			||||||
 | 
					 Unicode UTF-8 encoding in edited files. Its core feature set includes syntax
 | 
				
			||||||
 | 
					 highlighting of source code, auto indentation and printing and print preview
 | 
				
			||||||
 | 
					 support.
 | 
				
			||||||
 | 
					 .
 | 
				
			||||||
 | 
					 Xed is also extensible through its plugin system, which currently
 | 
				
			||||||
 | 
					 includes support for spell checking, comparing files, viewing CVS
 | 
				
			||||||
 | 
					 ChangeLogs, and adjusting indentation levels.
 | 
				
			||||||
 | 
					 .
 | 
				
			||||||
 | 
					 This package contains introspection data for Xed.
 | 
				
			||||||
 | 
					 .
 | 
				
			||||||
 | 
					 It can be used by packages using the GIRepository format to generate
 | 
				
			||||||
 | 
					 dynamic bindings.
 | 
				
			||||||
							
								
								
									
										2
									
								
								debian/gir1.2-xed.install
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								debian/gir1.2-xed.install
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					usr/lib/*/girepository-1.0
 | 
				
			||||||
 | 
					usr/share/gir-1.0
 | 
				
			||||||
@@ -5,20 +5,21 @@ bin_PROGRAMS = xed
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
noinst_LTLIBRARIES = libxed.la
 | 
					noinst_LTLIBRARIES = libxed.la
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AM_CPPFLAGS =								\
 | 
					AM_CPPFLAGS =							\
 | 
				
			||||||
	-I$(top_srcdir)							\
 | 
						-I$(top_srcdir)						\
 | 
				
			||||||
	-I$(srcdir)							\
 | 
						-I$(srcdir)							\
 | 
				
			||||||
	-I$(srcdir)/smclient						\
 | 
						-I$(srcdir)/smclient				\
 | 
				
			||||||
	$(XED_CFLAGS)							\
 | 
						$(XED_CFLAGS)						\
 | 
				
			||||||
	$(WARN_CFLAGS)							\
 | 
						$(WARN_CFLAGS)						\
 | 
				
			||||||
	$(DISABLE_DEPRECATED_CFLAGS)					\
 | 
						$(INTROSPECTION_CFLAGS)				\
 | 
				
			||||||
	-DDATADIR=\""$(datadir)"\"					\
 | 
						$(DISABLE_DEPRECATED_CFLAGS)		\
 | 
				
			||||||
 | 
						-DDATADIR=\""$(datadir)"\"			\
 | 
				
			||||||
	-DLIBDIR=\""$(libdir)"\"
 | 
						-DLIBDIR=\""$(libdir)"\"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
xed_SOURCES = \
 | 
					xed_SOURCES = \
 | 
				
			||||||
	xed.c
 | 
						xed.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
xed_LDADD = libxed.la $(XED_LIBS) $(EGG_SMCLIENT_LIBS)
 | 
					xed_LDADD = libxed.la $(XED_LIBS) $(EGG_SMCLIENT_LIBS) $(INTROSPECTION_LIBS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
xed_LDFLAGS = -export-dynamic -no-undefined -export-symbols-regex "^[[^_]].*"
 | 
					xed_LDFLAGS = -export-dynamic -no-undefined -export-symbols-regex "^[[^_]].*"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -104,22 +105,19 @@ header_DATA = 				\
 | 
				
			|||||||
	$(INST_H_FILES)
 | 
						$(INST_H_FILES)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
libxed_la_SOURCES = 			\
 | 
					libxed_c_files = 				\
 | 
				
			||||||
	$(BUILT_SOURCES)		\
 | 
						xed-app.c					\
 | 
				
			||||||
	$(BACON_FILES)			\
 | 
						xed-close-button.c			\
 | 
				
			||||||
	$(POSIXIO_FILES)		\
 | 
					 | 
				
			||||||
	xed-app.c			\
 | 
					 | 
				
			||||||
	xed-close-button.c		\
 | 
					 | 
				
			||||||
	xed-commands-documents.c	\
 | 
						xed-commands-documents.c	\
 | 
				
			||||||
	xed-commands-edit.c		\
 | 
						xed-commands-edit.c			\
 | 
				
			||||||
	xed-commands-file.c		\
 | 
						xed-commands-file.c			\
 | 
				
			||||||
	xed-commands-file-print.c	\
 | 
						xed-commands-file-print.c	\
 | 
				
			||||||
	xed-commands-help.c		\
 | 
						xed-commands-help.c			\
 | 
				
			||||||
	xed-commands-search.c		\
 | 
						xed-commands-search.c		\
 | 
				
			||||||
	xed-commands-view.c		\
 | 
						xed-commands-view.c			\
 | 
				
			||||||
	xed-debug.c			\
 | 
						xed-debug.c					\
 | 
				
			||||||
	xed-dirs.c			\
 | 
						xed-dirs.c					\
 | 
				
			||||||
	xed-document.c 		\
 | 
						xed-document.c 				\
 | 
				
			||||||
	xed-document-input-stream.c	\
 | 
						xed-document-input-stream.c	\
 | 
				
			||||||
	xed-document-loader.c		\
 | 
						xed-document-loader.c		\
 | 
				
			||||||
	xed-document-output-stream.c	\
 | 
						xed-document-output-stream.c	\
 | 
				
			||||||
@@ -127,19 +125,19 @@ libxed_la_SOURCES = 			\
 | 
				
			|||||||
	xed-document-saver.c		\
 | 
						xed-document-saver.c		\
 | 
				
			||||||
	xed-gio-document-saver.c	\
 | 
						xed-gio-document-saver.c	\
 | 
				
			||||||
	xed-documents-panel.c		\
 | 
						xed-documents-panel.c		\
 | 
				
			||||||
	xed-encodings.c		\
 | 
						xed-encodings.c				\
 | 
				
			||||||
	xed-encodings-combo-box.c	\
 | 
						xed-encodings-combo-box.c	\
 | 
				
			||||||
	xed-file-chooser-dialog.c	\
 | 
						xed-file-chooser-dialog.c	\
 | 
				
			||||||
	xed-help.c			\
 | 
						xed-help.c					\
 | 
				
			||||||
	xed-history-entry.c		\
 | 
						xed-history-entry.c			\
 | 
				
			||||||
	xed-io-error-message-area.c	\
 | 
						xed-io-error-message-area.c	\
 | 
				
			||||||
	xed-language-manager.c	\
 | 
						xed-language-manager.c		\
 | 
				
			||||||
	xed-message-bus.c		\
 | 
						xed-message-bus.c			\
 | 
				
			||||||
	xed-message-type.c		\
 | 
						xed-message-type.c			\
 | 
				
			||||||
	xed-message.c			\
 | 
						xed-message.c				\
 | 
				
			||||||
	xed-object-module.c		\
 | 
						xed-object-module.c			\
 | 
				
			||||||
	xed-notebook.c		\
 | 
						xed-notebook.c			\
 | 
				
			||||||
	xed-panel.c			\
 | 
						xed-panel.c				\
 | 
				
			||||||
	xed-plugin-info.c		\
 | 
						xed-plugin-info.c		\
 | 
				
			||||||
	xed-plugin.c			\
 | 
						xed-plugin.c			\
 | 
				
			||||||
	xed-plugin-loader.c		\
 | 
						xed-plugin-loader.c		\
 | 
				
			||||||
@@ -162,7 +160,13 @@ libxed_la_SOURCES = 			\
 | 
				
			|||||||
	xed-utils.c 			\
 | 
						xed-utils.c 			\
 | 
				
			||||||
	xed-view.c 			\
 | 
						xed-view.c 			\
 | 
				
			||||||
	xed-window.c			\
 | 
						xed-window.c			\
 | 
				
			||||||
	xedtextregion.c		\
 | 
						xedtextregion.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					libxed_la_SOURCES = 		\
 | 
				
			||||||
 | 
						$(libxed_c_files)		\
 | 
				
			||||||
 | 
						$(BUILT_SOURCES)		\
 | 
				
			||||||
 | 
						$(BACON_FILES)			\
 | 
				
			||||||
 | 
						$(POSIXIO_FILES)		\
 | 
				
			||||||
	$(NOINST_H_FILES)		\
 | 
						$(NOINST_H_FILES)		\
 | 
				
			||||||
	$(INST_H_FILES)
 | 
						$(INST_H_FILES)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -198,6 +202,27 @@ EXTRA_DIST = 				\
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CLEANFILES = $(BUILT_SOURCES)
 | 
					CLEANFILES = $(BUILT_SOURCES)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if HAVE_INTROSPECTION
 | 
				
			||||||
 | 
					-include $(INTROSPECTION_MAKEFILE)
 | 
				
			||||||
 | 
					INTROSPECTION_GIRS = Xed-1.0.gir
 | 
				
			||||||
 | 
					INTROSPECTION_SCANNER_ARGS = -I$(top_srcdir) --warn-all
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Xed-1.0.gir: xed
 | 
				
			||||||
 | 
					Xed_1_0_gir_INCLUDES = Gtk-3.0 GtkSource-3.0
 | 
				
			||||||
 | 
					Xed_1_0_gir_FILES = $(INST_H_FILES) $(libxed_c_files) $(BUILT_SOURCES)
 | 
				
			||||||
 | 
					Xed_1_0_gir_VERSION = 1.0
 | 
				
			||||||
 | 
					Xed_1_0_gir_PROGRAM = $(builddir)/xed
 | 
				
			||||||
 | 
					Xed_1_0_gir_NAMESPACE = Xed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					girdir = $(datadir)/gir-1.0
 | 
				
			||||||
 | 
					gir_DATA = $(INTROSPECTION_GIRS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					typelibdir = $(libdir)/girepository-1.0
 | 
				
			||||||
 | 
					typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CLEANFILES += $(gir_DATA) $(typelib_DATA)
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dist-hook:
 | 
					dist-hook:
 | 
				
			||||||
	cd $(distdir); rm -f $(BUILT_SOURCES)
 | 
						cd $(distdir); rm -f $(BUILT_SOURCES)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,6 +42,10 @@
 | 
				
			|||||||
#include <gtk/gtk.h>
 | 
					#include <gtk/gtk.h>
 | 
				
			||||||
#include <gdk/gdkx.h>
 | 
					#include <gdk/gdkx.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef HAVE_INTROSPECTION
 | 
				
			||||||
 | 
					#include <girepository.h>
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "xed-app.h"
 | 
					#include "xed-app.h"
 | 
				
			||||||
#include "xed-commands.h"
 | 
					#include "xed-commands.h"
 | 
				
			||||||
#include "xed-debug.h"
 | 
					#include "xed-debug.h"
 | 
				
			||||||
@@ -522,6 +526,10 @@ main (int argc, char *argv[])
 | 
				
			|||||||
	g_option_context_add_group (context, gtk_get_option_group (FALSE));
 | 
						g_option_context_add_group (context, gtk_get_option_group (FALSE));
 | 
				
			||||||
	g_option_context_add_group (context, egg_sm_client_get_option_group ());
 | 
						g_option_context_add_group (context, egg_sm_client_get_option_group ());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef HAVE_INTROSPECTION
 | 
				
			||||||
 | 
					    g_option_context_add_group (context, g_irepository_get_option_group ());
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	gtk_init (&argc, &argv);
 | 
						gtk_init (&argc, &argv);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!g_option_context_parse (context, &argc, &argv, &error))
 | 
						if (!g_option_context_parse (context, &argc, &argv, &error))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user