Browse Source

initial

tags/1.0.1
Perberos 10 years ago
commit
528c1e5ff5
100 changed files with 29948 additions and 0 deletions
  1. +13
    -0
      AUTHORS
  2. +7
    -0
      BUGS
  3. +340
    -0
      COPYING
  4. +65
    -0
      HACKING
  5. +12
    -0
      MAINTAINERS
  6. +75
    -0
      Makefile.am
  7. +1350
    -0
      NEWS
  8. +135
    -0
      README
  9. +23
    -0
      autogen.sh
  10. +600
    -0
      configure.ac
  11. +49
    -0
      data/Makefile.am
  12. +73
    -0
      data/gedit-bugreport.sh.in
  13. +76
    -0
      data/gedit.1
  14. +18
    -0
      data/gedit.desktop.in.in
  15. +11
    -0
      data/gedit.pc.in
  16. +537
    -0
      data/gedit.schemas.in.in
  17. +39
    -0
      distro/archlinux/PKGBUILD
  18. +22
    -0
      distro/archlinux/mate-text-editor.install
  19. +33
    -0
      distro/ubuntu/build
  20. +8
    -0
      distro/ubuntu/postinst
  21. +7
    -0
      distro/ubuntu/postrm
  22. +6
    -0
      distro/ubuntu/preinst
  23. +7
    -0
      distro/ubuntu/prerm
  24. +5
    -0
      docs/Makefile.am
  25. BIN
      docs/class-diagram.dia
  26. +121
    -0
      docs/reference/Makefile.am
  27. +37
    -0
      docs/reference/gedit-docs.sgml
  28. +0
    -0
      docs/reference/gedit-overrides.txt
  29. +809
    -0
      docs/reference/gedit-sections.txt
  30. +32
    -0
      docs/reference/gedit.types
  31. +39
    -0
      gedit.doap
  32. +254
    -0
      gedit/Makefile.am
  33. +396
    -0
      gedit/bacon-message-connection.c
  34. +43
    -0
      gedit/bacon-message-connection.h
  35. +31
    -0
      gedit/dialogs/Makefile.am
  36. +790
    -0
      gedit/dialogs/gedit-close-confirmation-dialog.c
  37. +75
    -0
      gedit/dialogs/gedit-close-confirmation-dialog.h
  38. +499
    -0
      gedit/dialogs/gedit-encodings-dialog.c
  39. +86
    -0
      gedit/dialogs/gedit-encodings-dialog.h
  40. +256
    -0
      gedit/dialogs/gedit-encodings-dialog.ui
  41. +1189
    -0
      gedit/dialogs/gedit-preferences-dialog.c
  42. +87
    -0
      gedit/dialogs/gedit-preferences-dialog.h
  43. +1107
    -0
      gedit/dialogs/gedit-preferences-dialog.ui
  44. +634
    -0
      gedit/dialogs/gedit-search-dialog.c
  45. +128
    -0
      gedit/dialogs/gedit-search-dialog.h
  46. +255
    -0
      gedit/dialogs/gedit-search-dialog.ui
  47. +911
    -0
      gedit/gedit-app.c
  48. +142
    -0
      gedit/gedit-app.h
  49. +80
    -0
      gedit/gedit-close-button.c
  50. +56
    -0
      gedit/gedit-close-button.h
  51. +87
    -0
      gedit/gedit-commands-documents.c
  52. +174
    -0
      gedit/gedit-commands-edit.c
  53. +91
    -0
      gedit/gedit-commands-file-print.c
  54. +1885
    -0
      gedit/gedit-commands-file.c
  55. +115
    -0
      gedit/gedit-commands-help.c
  56. +716
    -0
      gedit/gedit-commands-search.c
  57. +154
    -0
      gedit/gedit-commands-view.c
  58. +166
    -0
      gedit/gedit-commands.h
  59. +159
    -0
      gedit/gedit-debug.c
  60. +93
    -0
      gedit/gedit-debug.h
  61. +320
    -0
      gedit/gedit-dirs.c
  62. +54
    -0
      gedit/gedit-dirs.h
  63. +479
    -0
      gedit/gedit-document-input-stream.c
  64. +68
    -0
      gedit/gedit-document-input-stream.h
  65. +357
    -0
      gedit/gedit-document-loader.c
  66. +130
    -0
      gedit/gedit-document-loader.h
  67. +391
    -0
      gedit/gedit-document-output-stream.c
  68. +64
    -0
      gedit/gedit-document-output-stream.h
  69. +359
    -0
      gedit/gedit-document-saver.c
  70. +133
    -0
      gedit/gedit-document-saver.h
  71. +2732
    -0
      gedit/gedit-document.c
  72. +338
    -0
      gedit/gedit-document.h
  73. +828
    -0
      gedit/gedit-documents-panel.c
  74. +85
    -0
      gedit/gedit-documents-panel.h
  75. +468
    -0
      gedit/gedit-encodings-combo-box.c
  76. +78
    -0
      gedit/gedit-encodings-combo-box.h
  77. +473
    -0
      gedit/gedit-encodings.c
  78. +62
    -0
      gedit/gedit-encodings.h
  79. +39
    -0
      gedit/gedit-enum-types.c.template
  80. +27
    -0
      gedit/gedit-enum-types.h.template
  81. +560
    -0
      gedit/gedit-file-chooser-dialog.c
  82. +89
    -0
      gedit/gedit-file-chooser-dialog.h
  83. +708
    -0
      gedit/gedit-gio-document-loader.c
  84. +79
    -0
      gedit/gedit-gio-document-loader.h
  85. +775
    -0
      gedit/gedit-gio-document-saver.c
  86. +76
    -0
      gedit/gedit-gio-document-saver.h
  87. +122
    -0
      gedit/gedit-help.c
  88. +44
    -0
      gedit/gedit-help.h
  89. +632
    -0
      gedit/gedit-history-entry.c
  90. +96
    -0
      gedit/gedit-history-entry.h
  91. +1288
    -0
      gedit/gedit-io-error-message-area.c
  92. +68
    -0
      gedit/gedit-io-error-message-area.h
  93. +90
    -0
      gedit/gedit-language-manager.c
  94. +47
    -0
      gedit/gedit-language-manager.h
  95. +13
    -0
      gedit/gedit-marshal.list
  96. +626
    -0
      gedit/gedit-message-area.c
  97. +129
    -0
      gedit/gedit-message-area.h
  98. +1158
    -0
      gedit/gedit-message-bus.c
  99. +129
    -0
      gedit/gedit-message-bus.h
  100. +526
    -0
      gedit/gedit-message-type.c

+ 13
- 0
AUTHORS View File

@@ -0,0 +1,13 @@
Active authors:

Paolo Maggi <paolo@gnome.org>
Paolo Borelli <pborelli@katamail.com>
Steve Frécinaux <code@istique.net>
Jesse van den Kieboom <jesse@icecrew.nl>

Old contributors:

Chema Celorio
James Willcox <jwillcox@gnome.org>
Federico Mena Quintero <federico@ximian.com>


+ 7
- 0
BUGS View File

@@ -0,0 +1,7 @@
Search on http://bugzilla.mate.org for a list of known gedit's bug.

If you find a new bug, please report it at
http://bugzilla.mate.org/enter_bug.cgi?product=gedit.

Thanks,
Paolo

+ 340
- 0
COPYING View File

@@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Preamble

The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.

When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.

To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.

For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.

We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.

Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.

Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.

The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.

1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.

You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.

2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.

b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.

c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.

Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.

In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:

a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,

b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,

c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)

The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.

5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.

6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.

7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.

If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.

It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.

9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

NO WARRANTY

11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


Also add information on how to contact you by electronic and paper mail.

If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:

Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.

You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:

Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.

<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice

This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

+ 65
- 0
HACKING View File

@@ -0,0 +1,65 @@
guidelines for gedit
====================

gedit source code is maintained using the git version control system
and is available at the following location:

git://git.mate.org/gedit

Or if you have an account on MATE servers:

ssh://USERNAME@git.mate.org/git/gedit

A Web Interface is available at:

http://git.mate.org/cgit/gedit

Please don't commit directly to the git repository unless
you have been given the green light to commit freely to gedit.
When in doubt assume you haven't ;-).

Please attach patches in bugzilla (http://bugzilla.mate.org).
If the patch fixes a bug that is not reported yet in bugzilla or is
an enhancement, create a new bugreport.

If you are a translator feel free to mark strings for translation,
fix typos in the code, etc.

Please send patches for build & configure fixes too. I really appreciate
your help, I just want to review these fixes before applying.

If you are a "build sheriff", feel free to commit fixes for build and
configure (please, send me an e-mail with the patch you have applied).

When committing to the gedit git repository make sure to include a
meaningful commit message. Changes without a sufficient commit message
will be reverted. Commit messages should have the following format:

=== begin example commit ===
Short explanation of the commit

Longer explanation explaining exactly what's changed, whether any
external or private interfaces changed, what bugs were fixed (with bug
tracker reference if applicable) and so forth. Be concise but not too brief.
=== end example commit ===

- Always add a brief description of the commit to the _first_ line of
the commit and terminate by two newlines (it will work without the
second newline, but that is not nice for the interfaces).

- First line (the brief description) must only be one sentence and
should start with a capital letter unless it starts with a lowercase
symbol or identifier. Don't use a trailing period either. Don't exceed
72 characters.

- The main description (the body) is normal prose and should use normal
punctuation and capital letters where appropriate. Normally, for patches
sent to a mailing list it's copied from there.

- When committing code on behalf of others use the --author option, e.g.
git commit -a --author "Joe Coder <joe@coder.org>" and --signoff.


Thanks,

The gedit team.

+ 12
- 0
MAINTAINERS View File

@@ -0,0 +1,12 @@
Paolo Borelli
E-mail: pborelli@gnome.org
Userid: pborelli

Paolo Maggi
E-mail: paolo@gnome.org
Userid: paolo

Jesse van den Kieboom
E-mail: jessevdk@gnome.org
Userid: jessevdk


+ 75
- 0
Makefile.am View File

@@ -0,0 +1,75 @@
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = gedit pixmaps po data plugin-loaders plugins docs tests win32 osx

if !OS_OSX
SUBDIRS += help
endif

distuninstallcheck_listfiles = find . -type f -print | grep -v scrollkeeper

EXTRA_DIST = \
BUGS \
ChangeLog-20011116 \
ChangeLog-20051212 \
ChangeLog-20090418 \
HACKING \
MAINTAINERS \
gedit.doap \
xmldocs.make \
omf.make \
mate-doc-utils.make \
intltool-extract.in \
intltool-merge.in \
intltool-update.in

DISTCLEANFILES = \
mate-doc-utils.make \
intltool-extract \
intltool-merge \
intltool-update

MAINTAINERCLEANFILES = \
aclocal.m4 \
config.guess \
config.h.in \
config.sub \
depcomp \
gtk-doc.make \
install-sh \
ltmain.sh \
missing \
mkinstalldirs \
omf.make \
py-compile \
xmldocs.make \
m4/mate-doc-utils.m4 \
m4/gtk-doc.m4 \
m4/intltool.m4 \
m4/libtool.m4 \
m4/ltoptions.m4 \
m4/ltsugar.m4 \
m4/ltversion.m4 \
m4/lt~obsolete.m4 \
`find "$(srcdir)" -type f -name Makefile.in -print`

DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper --enable-gtk-doc

CHANGELOG_START = GEDIT_2_26_1

dist-hook:
@if test -d "$(srcdir)/.git"; \
then \
echo Creating ChangeLog && \
(GIT_DIR=$(top_srcdir)/.git \
./missing --run git log $(CHANGELOG_START)^^.. --stat -M -C --name-status --date=short --no-color) | \
fmt --split-only > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp ; \
echo Failed to generate ChangeLog >&2 ); \
else \
echo A git clone is required to generate a ChangeLog >&2; \
fi

-include $(top_srcdir)/git.mk

+ 1350
- 0
NEWS
File diff suppressed because it is too large
View File


+ 135
- 0
README View File

@@ -0,0 +1,135 @@
General Information
===================

This is version 2.30.4 of gedit. gedit is a small and lightweight UTF-8 text
editor for the MATE environment.

gedit is part of MATE and uses the latest GTK+ and MATE libraries.
Complete MATE integration is featured, with support for Drag and Drop (DnD)
from Caja (the MATE file manager), the use of the MATE help system,
the MATE Virtual File System and the MATE print framework.

gedit uses a Multiple Document Interface (MDI), which lets you edit more than
one document at the same time.

gedit supports most standard editing features, plus several not found in your
average text editor (plugins being the most notable of these).

gedit plugins may also be written in the python scripting language: to enable
python support you need the pygtk and mate-python-desktop bindings.

Although new features are always under development, currently gedit has:

* Complete support for UTF-8 text
* Syntax highlighting
* Support for editing remote files
* Search and Replace
* Printing and Print Previewing Support
* File Revert
* A complete preferences interface
* Configurable Plugin system, with optional python support


Some of the plugins, packaged and installed with gedit include, among others:

* Word count
* Spell checker
* Change case of selected text
* File Browser
* Automatic snippet expansion
* Sort
* Insert Date/Time
* External Tools
* Tag list

Other external plugins are also available.


gedit is released under the GNU General Public License (GPL) version 2, see
the file 'COPYING' for more information.


The official web site is:

http://www.gedit.org

You can download the latest gedit tarball from:

http://download.mate.org/sources/gedit/

Information about gedit mailing lists can be found at

http://mail.mate.org/mailman/listinfo/gedit-list


Installation
============

gedit requires GTK+-2.16.x, GtkSourceView 2.4.x and MateConf libraries.
PyGobject 2.12.x, PyGtk 2.12.x and PyGtkSourceView 2.4.x are required to
enable python plugins support.

Simple install procedure:

% gzip -cd gedit-2.30.4.tar.gz | tar xvf - # unpack the sources
% cd gedit-2.30.4 # change to the toplevel directory
% ./configure # run the `configure' script
% make # build gedit
[ Become root if necessary ]
% make install # install gedit

See the file 'INSTALL' for more detailed information.


How to report bugs
==================

Bugs should be reported to the MATE bug tracking system.
(http://bugzilla.mate.org, product gedit). You will need to create an
account for yourself.

You can also report bugs using the MATE program bug-buddy.

In the bug report please include:

* Information about your system. For instance:

- What operating system and version
- What version of X
- What version of the gtk+, glib and mate libraries
- For Linux, what version of the C library

And anything else you think is relevant.

* How to reproduce the bug.

* If the bug was a crash, the exact text that was printed out when the
crash occurred.

* Further information such as stack traces may be useful, but is not
necessary. If you do send a stack trace, and the error is an X error,
it will be more useful if the stack trace is produced running the test
program with the --sync command line option.

See the file 'BUGS' for the list of known bugs.


Patches
=======

Patches should also be submitted to bugzilla.mate.org. If the patch
fixes an existing bug, add the patch as an attachment to that bug
report.

Otherwise, enter a new bug report that describes the patch, and attach
the patch to that bug report.

Patches should be in unified diff form. (The -u option to GNU diff.)

If you are interested in helping us to develop gedit, please see the
file 'AUTHOR' for contact information and/or send a message to the gedit
mailing list. See also the file 'HACKING' for more detailed information.


The gedit team.


+ 23
- 0
autogen.sh View File

@@ -0,0 +1,23 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

PKG_NAME=mate-text-editor

(test -f $srcdir/configure.ac \
&& test -f $srcdir/autogen.sh \
&& test -d $srcdir/gedit \
&& test -f $srcdir/gedit/gedit.c) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}

which mate-autogen.sh || {
echo "You need to install mate-common from the MATE CVS"
exit 1
}

REQUIRED_AUTOMAKE_VERSION=1.9 MATE_DATADIR="$mate_datadir" USE_COMMON_DOC_BUILD=yes . mate-autogen.sh

+ 600
- 0
configure.ac View File

@@ -0,0 +1,600 @@
dnl Process this file with autoconf to produce a configure script.

AC_PREREQ(2.63.2)

m4_define(gedit_major_version, 2011)
m4_define(gedit_minor_version, 10)
m4_define(gedit_micro_version, 26)
m4_define(gedit_version, gedit_major_version.gedit_minor_version.gedit_micro_version)

AC_INIT([gedit],[gedit_version],[http://bugzilla.mate.org/enter_bug.cgi?product=gedit],[gedit],[http://projects.mate.org/gedit/])

AC_CONFIG_HEADERS(config.h)
AC_CONFIG_SRCDIR(gedit/gedit.c)
AC_CONFIG_MACRO_DIR([m4])

AC_DEFINE(GEDIT_MAJOR_VERSION, gedit_major_version, [Gedit major version])
AC_SUBST(GEDIT_MAJOR_VERSION, gedit_major_version)
AC_DEFINE(GEDIT_MINOR_VERSION, gedit_minor_version, [Gedit minor version])
AC_SUBST(GEDIT_MINOR_VERSION, gedit_minor_version)
AC_DEFINE(GEDIT_MICRO_VERSION, gedit_micro_version, [Gedit micro version])
AC_SUBST(GEDIT_MICRO_VERSION, gedit_micro_version)

AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip -Wno-portability])
AM_MAINTAINER_MODE
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

# Checks for programs
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_SYS_LARGEFILE
PKG_PROG_PKG_CONFIG
# needed on osx
AC_PROG_OBJC

# Initialize libtool
LT_PREREQ([2.2.6])
LT_INIT(disable-static)

GEDIT_API_VERSION=2.20
AC_SUBST(GEDIT_API_VERSION)

AC_PATH_PROG(MATECONFTOOL, mateconftool-2)

GTK_DOC_CHECK([1.0],[--flavour=no-tmpl])

AC_CHECK_FUNC(sigaction)
AC_CHECK_LIB(m, floor)

dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4")

dnl active plugins for gedit.schemas
ACTIVE_PLUGINS="docinfo,modelines,filebrowser,spell,time"
AC_SUBST(ACTIVE_PLUGINS)

dnl toolbar style for gedit schemas
TOOLBAR_STYLE="GEDIT_TOOLBAR_SYSTEM"
AC_SUBST(TOOLBAR_STYLE)

dnl check for win32 platform
AC_MSG_CHECKING([for Win32 platform])
case "$host" in
*-*-mingw*|*-*-cygwin*)
platform_win32=yes
TOOLBAR_STYLE="GEDIT_TOOLBAR_ICONS"
;;
*)
platform_win32=no
;;
esac
AC_MSG_RESULT([$platform_win32])
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")

AC_MSG_CHECKING([for native Win32])
case "$host" in
*-*-mingw*)
os_win32=yes
AC_CHECK_TOOL(WINDRES, windres)
ACTIVE_PLUGINS="${ACTIVE_PLUGINS},checkupdate"
;;
*)
os_win32=no
;;
esac
AC_MSG_RESULT([$os_win32])
AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")

dnl check for osx platform
AC_MSG_CHECKING([for Mac OS X platform])
case "$host" in
*-*-darwin*)
platform_osx=yes
;;
*)
platform_osx=no
;;
esac
AC_MSG_RESULT([$platform_osx])
AM_CONDITIONAL(PLATFORM_OSX, test "$platform_osx" = "yes")

dnl check for native osx
gdk_windowing=`$PKG_CONFIG --variable=target gdk-2.0`

AC_MSG_CHECKING([for native Mac OS X])
if test "$gdk_windowing" = "quartz"; then
os_osx=yes
ACTIVE_PLUGINS="${ACTIVE_PLUGINS},checkupdate"
else
os_osx=no
fi
AC_MSG_RESULT([$os_osx])
AM_CONDITIONAL(OS_OSX, test "$os_osx" = "yes")

if test "$platform_osx" = "yes"; then
AC_DEFINE([PLATFORM_OSX],[1],[Defined if platform is Mac OSX])
fi

AC_SUBST(DEFAULT_FONT)
AC_SUBST(DEFAULT_PRINT_FONT)

if test "$os_osx" = "yes"; then
AC_DEFINE([OS_OSX],[1],[Defined if os is Mac OSX])

PKG_CHECK_MODULES(IGE_MAC, ige-mac-integration)

AC_SUBST(IGE_MAC_CFLAGS)
AC_SUBST(IGE_MAC_LIBS)
fi

dnl ===============================================================
dnl Expanded dirs
dnl ===============================================================

# This macro expands DIR and assigns it to RET.
# If DIR is NONE, then it's replaced by DEFAULT.
# Based on AC_DEFINE_DIR
AC_DEFUN([GEDIT_FULLPATH], [
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
ac_expand=[$]$1
test "x$ac_expand" = xNONE && ac_expand="[$]$2"
ac_expand=`eval echo [$]ac_expand`
$3=`eval echo [$]ac_expand`
])

dnl FULL_LIBEXECDIR is used for X-MATE-Bugzilla-ExtraInfoScript expansion
dnl in data/gedit.desktop.in.in
GEDIT_FULLPATH(libexecdir, NONE, FULL_LIBEXECDIR)
AC_SUBST(FULL_LIBEXECDIR)

dnl ================================================================
dnl Gettext stuff.
dnl ================================================================

IT_PROG_INTLTOOL([0.40.0])
AC_SUBST([GETTEXT_PACKAGE], [gedit])
AM_GNU_GETTEXT_VERSION([0.17])
AM_GLIB_GNU_GETTEXT
AC_DEFINE([GETTEXT_PACKAGE],[PACKAGE_TARNAME], [Define to the gettext package name.])

dnl ================================================================
dnl Use gvfs metadata or the old xml file store.
dnl ================================================================

if test "x$os_osx" != "xno" || test "x$os_win32" != "xno"; then
gvfs_metadata_default="no"
else
gvfs_metadata_default="yes"
fi

AC_ARG_ENABLE([gvfs-metadata],
AS_HELP_STRING([--enable-gvfs-metadata], [Enable using gvfs to store metadata]),
[enable_gvfs_metadata=$enableval],
[enable_gvfs_metadata=$gvfs_metadata_default])

AM_CONDITIONAL(ENABLE_GVFS_METADATA, test "x$enable_gvfs_metadata" != "xno")

if test "x$enable_gvfs_metadata" != "xno"; then
AC_DEFINE([ENABLE_GVFS_METADATA], [1], [Define to enable using gvfs metadata])
fi

dnl ================================================================
dnl check update plugin
dnl ================================================================

AC_ARG_ENABLE([updater],
AS_HELP_STRING([--disable-updater],[Disable check update plugin (default: enabled)]),
[enable_updater=$enableval],
[enable_updater=yes])

if test "x$enable_updater" != "xno"; then
PKG_CHECK_MODULES(LIBSOUP, \
libsoup-2.4,
have_libsoup=yes,
have_libsoup=no)

if test "x$have_libsoup" = "xyes"; then
if test "x$os_win32" = "xyes"; then
enable_updater=yes
elif test "x$os_osx" = "xyes"; then
enable_updater=yes
else
enable_updater=no
fi
else
enable_updater=no
fi
fi

AM_CONDITIONAL(ENABLE_UPDATER, test x"$enable_updater" = "xyes")

dnl ================================================================
dnl spell plugins checks: enchant and iso-codes
dnl ================================================================

ENCHANT_REQUIRED=1.2.0
ISO_CODES_REQUIRED=0.35

AC_ARG_ENABLE([spell],
AS_HELP_STRING([--disable-spell],[Disable spell plugin (default: enabled)]),
[enable_enchant=$enableval],
[enable_enchant=yes])

if test "x$enable_enchant" = "xyes" ; then

PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED, \
have_enchant=yes, have_enchant=no)

if test "x$have_enchant" = "xyes"; then

PKG_CHECK_EXISTS([iso-codes >= $ISO_CODES_REQUIRED],
[have_iso_codes=yes],[have_iso_codes=no])

if test "x$have_iso_codes" = "xyes"; then
AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
$PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
result=yes
else
result=no
have_iso_codes=no
fi
AC_MSG_RESULT([$result])
fi

if test "x$have_iso_codes" = "xyes"; then
AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["`$PKG_CONFIG --variable=prefix iso-codes`"],[ISO codes prefix])
AC_DEFINE([HAVE_ISO_CODES],[1],[Define if you have the iso-codes package])
else
AC_MSG_ERROR([iso-codes is required to build the spell plugin. Use --disable-spell to build without spell plugin.])
fi
else
enable_enchant=no
AC_MSG_ERROR([Enchant library not found or too old. Use --disable-spell to build without spell plugin.])
fi
fi

AM_CONDITIONAL(ENABLE_ENCHANT, test x"$enable_enchant" = "xyes")

dnl ================================================================
dnl libsocket checks - needed for bacon-connection on solaris.
dnl ================================================================
AC_SEARCH_LIBS(bind, socket)

dnl ================================================================
dnl Start of pkg-config checks
dnl ================================================================

PKG_CHECK_MODULES(GEDIT, [
libxml-2.0 >= 2.5.0
glib-2.0 >= 2.22.0
gthread-2.0 >= 2.13.0
gio-2.0 >= 2.23.1
gtk+-2.0 >= 2.16.0
gtksourceview-2.0 >= 2.9.7
mateconf-2.0 >= 1.1.11
])

if test "$os_osx" = "no" &&
test "$os_win32" = "no"; then
PKG_CHECK_MODULES(X11, [
x11
])
else
X11_CFLAGS=
X11_LIBS=
fi

GEDIT_CFLAGS="$GEDIT_CFLAGS $X11_CFLAGS"
GEDIT_LIBS="$GEDIT_LIBS $X11_LIBS"

AC_SUBST(GEDIT_CFLAGS)
AC_SUBST(GEDIT_LIBS)

dnl FIXME: Remove this when removing gedit-message-area

if $PKG_CONFIG --atleast-version 2.17.1 gtk+-2.0; then
gtkatleast=
else
gtkatleast=no
fi

AM_CONDITIONAL(BUILD_MESSAGE_AREA, test "$gtkatleast" = "no")

dnl FIXME: Remove this when removing gedit-spinner

if $PKG_CONFIG --atleast-version 2.19.0 gtk+-2.0; then
gtkatleast=
else
gtkatleast=no
fi

AM_CONDITIONAL(BUILD_SPINNER, test "$gtkatleast" = "no")
if test "$gtkatleast" = "no"; then
AC_DEFINE([BUILD_SPINNER],[1],[Whether to use GeditSpinner instead of GtkSpinner])
fi

if test "$os_osx" = "no" &&
test "$os_win32" = "no"; then
PKG_CHECK_MODULES(EGG_SMCLIENT, [
sm >= 1.0.0
])
else
EGG_SMCLIENT_CFLAGS=
EGG_SMCLIENT_LIBS=
fi

AC_SUBST(EGG_SMCLIENT_CFLAGS)
AC_SUBST(EGG_SMCLIENT_LIBS)

dnl ================================================================
dnl MateConf related settings
dnl ================================================================

AM_MATECONF_SOURCE_2

dnl ================================================================
dnl Python
dnl ================================================================

AC_MSG_CHECKING([whether Python support is requested])
AC_ARG_ENABLE([python],
AS_HELP_STRING([--enable-python],[Enable python support]),
[enable_python=$enableval have_python=$enableval],
[enable_python=autodetect have_python=yes])
AC_MSG_RESULT([$enable_python])

if test "x$have_python" != "xno"; then
AM_PATH_PYTHON([2.5],[],[no])
if test "x$PYTHON" = "x:"; then
have_python=no
fi
fi

if test "x$have_python" != "xno"; then
AM_CHECK_PYTHON_HEADERS([],[have_python=no])
fi

if test "x$have_python" != "xno"; then
PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'`
PYTHON_LIBS="-lpython$PYTHON_VERSION"

if test "$os_win32" = yes; then
PYTHON_LIBS=`echo $PYTHON_LIBS | sed 's/\.//g'`
PYTHON_LIB_LOC="-I$PY_EXEC_PREFIX/libs"
PYTHON_CFLAGS="-I$PY_EXEC_PREFIX/include"
PYTHON_EXTRA_LIBS=
else
PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config"
PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config/Makefile"
PYTHON_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
PYTHON_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
PYTHON_EXTRA_LIBS="$PYTHON_BASEMODLIBS $PYTHON_OTHER_LIBS"
fi
AC_SUBST([PYTHON_LIBS])
AC_SUBST([PYTHON_LIB_LOC])
AC_SUBST([PYTHON_CFLAGS])
AC_SUBST([PYTHON_EXTRA_LIBS])
fi

if test "x$have_python" != "xyes"; then
if test "x$enable_python" = "xyes"; then
AC_MSG_ERROR([Python not found])
elif test "x$enable_python" = "xautodetect"; then
enable_python=no
AC_MSG_WARN([Python not found, disabling python support])
fi
fi

if test "x$have_python" != "xno"; then
PYGOBJECT_REQUIRED=2.15.4
PYGTK_REQUIRED=2.12.0
PYGTKSOURCEVIEW_REQUIRED=2.9.2

PKG_CHECK_MODULES([PYGTK], [
pygobject-2.0 >= $PYGOBJECT_REQUIRED
pygtk-2.0 >= $PYGTK_REQUIRED
pygtksourceview-2.0 >= $PYGTKSOURCEVIEW_REQUIRED],
[],
[
have_python=no
if test "x$enable_python" = "xyes"; then
AC_MSG_ERROR([$PYGTK_PKG_ERRORS])
elif test "x$enable_python" = "xautodetect"; then
enable_python=no
AC_MSG_WARN([$PYGTK_PKG_ERRORS])
AC_MSG_WARN([Disabling python support])
fi
])
fi

if test "x$have_python" != "xno"; then
AC_MSG_CHECKING([for pygtk defs])
PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
AC_MSG_RESULT([$PYGTK_DEFSDIR])

AC_MSG_CHECKING([for pygobject defs])
PYGOBJECT_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygobject-2.0`
AC_MSG_RESULT([$PYGOBJECT_DEFSDIR])

AC_MSG_CHECKING([for pygtk codegen])
PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
AC_MSG_RESULT([$PYGTK_CODEGEN])

AC_MSG_CHECKING([for pygtk h2def])
PYGTK_H2DEF="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/h2def.py"
AC_MSG_RESULT([$PYGTK_H2DEF])

AC_SUBST([PYGTK_DEFSDIR])
AC_SUBST([PYGOBJECT_DEFSDIR])
AC_SUBST([PYGTK_CODEGEN])
AC_SUBST([PYGTK_H2DEF])

dnl Check for -fno-strict-aliasing
FLAGS="-fno-strict-aliasing"
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $FLAGS"
AC_MSG_CHECKING([whether [$]CC understands $FLAGS])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[compiler_has_option=yes],[compiler_has_option=no])
CFLAGS="$save_CFLAGS"
AC_MSG_RESULT($compiler_has_option)
if test $compiler_has_option = yes; then
NO_STRICT_ALIASING_CFLAGS="$FLAGS"
fi
AC_SUBST([NO_STRICT_ALIASING_CFLAGS])
fi

if test "x$have_python" != "xno" -a "x$enable_python" != "xno"; then
enable_python=yes
AC_DEFINE([ENABLE_PYTHON],[1],[Define to compile with python support])
fi

AM_CONDITIONAL([ENABLE_PYTHON],[test "x$enable_python" = "xyes"])

dnl This allows the bug-report script to know whether python has been enabled
AC_SUBST(enable_python)

dnl ================================================================
dnl Misc
dnl ================================================================
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)

MATE_COMPILE_WARNINGS(yes)

AC_ARG_ENABLE(deprecations,
[AS_HELP_STRING([--enable-deprecations],
[warn about deprecated usages [default=no]])],,
[enable_deprecations=no])

if test "x$enable_deprecations" = "xyes"; then
DISABLE_DEPRECATED_CFLAGS="\
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DGDK_PIXBUF_DISABLE_DEPRECATED \
-DMATE_DISABLE_DEPRECATED"
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
fi

# on win32 plugins must be able to resolve all symbols at link time
# so we create a lib
if test "$platform_win32" = yes; then
GEDIT_IMPLIB="-lgedit-$GEDIT_API_VERSION"
PLUGIN_LIBTOOL_FLAGS="-module -avoid-version -no-undefined -Wl,\$(top_builddir)/gedit/libgedit-\$(GEDIT_API_VERSION).a"
LOADER_LIBTOOL_FLAGS="-module -avoid-version -no-undefined -Wl,\$(top_builddir)/gedit/libgedit-\$(GEDIT_API_VERSION).a"
if test "$os_win32" = yes; then
PLUGIN_LIBTOOL_FLAGS="${PLUGIN_LIBTOOL_FLAGS} -mwindows"
LOADER_LIBTOOL_FLAGS="${LOADER_LIBTOOL_FLAGS} -mwindows"
fi
else
GEDIT_IMPLIB=""
PLUGIN_LIBTOOL_FLAGS="-module -avoid-version"
LOADER_LIBTOOL_FLAGS="-module -avoid-version"
fi
AC_SUBST(GEDIT_IMPLIB)
AC_SUBST(PLUGIN_LIBTOOL_FLAGS)
AC_SUBST(LOADER_LIBTOOL_FLAGS)

GEDIT_PLUGINS_DATA_DIR="$datadir/gedit-2/plugins"
AC_SUBST(GEDIT_PLUGINS_DATA_DIR)

GEDIT_PLUGINS_LIBS_DIR="$libdir/gedit-2/plugins"
AC_SUBST(GEDIT_PLUGINS_LIBS_DIR)

MATE_DOC_INIT([0.9.0],,
[AC_MSG_WARN([[mate-doc-utils not found: documentation will not be built.]])])

AC_CONFIG_FILES([
Makefile
data/gedit.desktop.in
data/gedit-bugreport.sh
data/gedit.pc
data/gedit.schemas.in
data/Makefile
docs/Makefile
docs/reference/Makefile
gedit/dialogs/Makefile
gedit/smclient/Makefile
gedit/osx/Makefile
gedit/Makefile
help/Makefile
pixmaps/Makefile
plugin-loaders/Makefile
plugin-loaders/c/Makefile
plugin-loaders/python/Makefile
plugin-loaders/python/bindings/Makefile
plugins/Makefile
plugins/changecase/Makefile
plugins/checkupdate/Makefile
plugins/docinfo/Makefile
plugins/externaltools/data/Makefile
plugins/externaltools/Makefile
plugins/externaltools/scripts/Makefile
plugins/externaltools/tools/Makefile
plugins/filebrowser/Makefile
plugins/modelines/Makefile
plugins/pythonconsole/Makefile
plugins/pythonconsole/pythonconsole/Makefile
plugins/quickopen/Makefile
plugins/quickopen/quickopen/Makefile
plugins/snippets/data/lang/Makefile
plugins/snippets/data/Makefile
plugins/snippets/Makefile
plugins/snippets/snippets/Makefile
plugins/sort/Makefile
plugins/spell/Makefile
plugins/taglist/Makefile
plugins/time/Makefile
po/Makefile.in
tests/Makefile
win32/gedit.iss
win32/Makefile
osx/Info.plist
osx/Makefile])

AC_OUTPUT

echo "

Configuration:

Source code location: ${srcdir}
Compiler: ${CC}
Python Plugins Support: $enable_python
Spell Plugin enabled: $enable_enchant
Gvfs metadata enabled: $enable_gvfs_metadata
"

if expr ${GEDIT_MINOR_VERSION} % 2 > /dev/null; then
stable_version=`expr ${GEDIT_MINOR_VERSION} - 1`

cat << EOF
*** IMPORTANT ***

This is an unstable version of gedit.
It is for test purposes only.

Please, DO NOT use it in a production environment.
It will probably crash and you will lose your data.

If you are looking for a stable release of gedit, either download
it from:

http://ftp.mate.org/pub/mate/sources/gedit/2.${stable_version}/

Or checkout the mate-${stable_version} branch of the gedit module from:

git://git.mate.org/gedit

Thanks,
The gedit team

*** END OF WARNING ***
EOF

fi

+ 49
- 0
data/Makefile.am View File

@@ -0,0 +1,49 @@
desktopdir = $(datadir)/applications
desktop_in_files = gedit.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

schemasdir = $(MATECONF_SCHEMA_FILE_DIR)
schemas_in_files = gedit.schemas.in
schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
@INTLTOOL_SCHEMAS_RULE@

man_MANS = gedit.1

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gedit-@GEDIT_API_VERSION@.pc

gedit-@GEDIT_API_VERSION@.pc: gedit.pc
cp gedit.pc gedit-@GEDIT_API_VERSION@.pc

bugreportdir = $(libexecdir)/gedit-2
bugreport_SCRIPTS = gedit-bugreport.sh

if MATECONF_SCHEMAS_INSTALL
install-data-local:
if test -z "$(DESTDIR)" ; then \
for p in $(schemas_DATA) ; do \
MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule $(top_builddir)/data/$$p ; \
done \
fi
else
install-data-local:
endif

EXTRA_DIST = \
$(desktop_in_files) \
$(schemas_in_files) \
gedit.schemas.in.in \
$(man_MANS) \
gedit.pc.in \
gedit-bugreport.sh.in

CLEANFILES = \
$(desktop_DATA) \
$(schemas_DATA) \
$(pkgconfig_DATA)




-include $(top_srcdir)/git.mk

+ 73
- 0
data/gedit-bugreport.sh.in View File

@@ -0,0 +1,73 @@
#!/bin/sh

ENABLE_PYTHON=@enable_python@

PKG_CONFIG_MODULES="glib-2.0 gtk+-2.0 gtksourceview-2.0 \
pygobject-2.0 pygtk-2.0 \
pygtksourceview-2.0 enchant iso-codes"

echo_padded ()
{
echo -n " - $1 "
N=$(echo -n $1 | wc -m)
while test $N -le 20
do
echo -n " "
N=`expr $N + 1`
done
}

#if (which mateconftool-2 >/dev/null)
#then
# echo "MateConf configuration dump:"
# mateconftool-2 --dump /apps/gedit-2 | grep -Ev "</?(entry|mateconfentryfile|entrylist|value|schema_key)" | cut -c4-
# echo
#fi

echo "Active plugins:"
mateconftool-2 --get /apps/gedit-2/plugins/active-plugins \
| sed -r -e 's/^\[(.*)\]$/\1/' -e 's/,/\n/g' \
| sed -e 's/^.*$/ - \0/'
echo

# Manually installed plugins (in $HOME)
if [ -d $HOME/.mate2/gedit/plugins ]
then
echo "Plugins in \$HOME:"
ls $HOME/.mate2/gedit/plugins/*.gedit-plugin \
| sed -r -e 's#.*/([^/]*)\.gedit-plugin$# - \1#'
else
echo "No plugin installed in \$HOME."
fi
echo

echo "Module versions:"
if (which pkg-config > /dev/null)
then
for i in $PKG_CONFIG_MODULES
do
echo_padded "`echo -n $i | sed -r -e 's/^(.*)-[0-9]\.[0-9]$/\1/'`"
pkg-config --modversion $i 2>/dev/null || echo
done
else
echo " pkg-config unavailable"
fi
echo

echo "Python module versions:"
if test "$ENABLE_PYTHON" = "yes"
then
echo_padded "python"
python -V 2>&1 | cut -c8-

echo_padded "pygtk"
python -c "import gtk, sys; \
sys.stdout.write('%d.%d.%d ' % gtk.pygtk_version); \
sys.stdout.write('(GTK+ %d.%d.%d)' % gtk.gtk_version)" \
2>/dev/null
echo
else
echo " Python support was not enabled at compile time."
fi
echo


+ 76
- 0
data/gedit.1 View File

@@ -0,0 +1,76 @@
.TH GEDIT 1 "24 Apr 2006"
.SH NAME
\fBgedit\fP \- text editor for the MATE Desktop

.SH SYNOPSIS
.B gedit
[\fIOPTION\fR]... [\fIFILE\fR]...
.SH DESCRIPTION
.B gedit
is the official text editor of the MATE desktop environment.

While aiming at simplicity and ease of use,
.B gedit
is a powerful general purpose text editor.
It can be used to create and edit all kinds of text files.

.B gedit
features a flexible plugin system which can be used to dynamically add
new advanced features to
.B gedit
itself.
.LP
.SH OPTIONS

.TP
\fB\-\-help\fR
Prints the command line options.
.TP
\fB\-\-encoding\fR
Set the character encoding to be used for opening the files listed on the command line".
.TP
\fB\-\-new\-window\fR
Create a new toplevel window in an existing instance of
.B gedit.
.TP
\fB\-\-new\-document\fR
Create a new document in an existing instance of
.B gedit.
.TP
\fB+[num]\fR
For the first file, go to the line specified by "num" (do not insert a space between the "+" sign and the number).
If "num" is missing, go to the last line.
.TP
\fBfilename(s)...\fR
Specifies the file to open when
.B gedit
starts. If this is not specified,
.B gedit
will load a blank file with an "Unsaved Document" label. Multiple files can be loaded if they are
separated by spaces.
.B gedit
also supports handling of remote files. For example, you can pass the location
of a webpage to
.B gedit,
like "http://www.mate.org", or load a file from a FTP server,
like "ftp://ftp.mate.org/robots.txt".
.TP
\fB\-\-list-encodings\fR
Display list of possible values for the encoding option and exit
.TP
\fB\-\-version\fR
Output version information and exit

.SH BUGS
If you find a bug, please report it at http://bugzilla.mate.org/enter_bug.cgi?product=gedit.
.SH AUTHORS
Paolo Maggi (paolo@gnome.org)
.TP
Paolo Borelli (pborelli@katamail.com)
.TP
James Willcox (jwillcox@gnome.org)
.TP
Federico Mena Quintero (federico@novell.com)
.TP
Chema Celorio


+ 18
- 0
data/gedit.desktop.in.in View File

@@ -0,0 +1,18 @@
[Desktop Entry]
_Name=gedit
_GenericName=Text Editor
_Comment=Edit text files
Exec=gedit %U
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/plain;
Icon=accessories-text-editor
Categories=MATE;GTK;Utility;TextEditor;
X-MATE-DocPath=gedit/gedit.xml
_X-MATE-FullName=gedit Text Editor
X-MATE-Bugzilla-Bugzilla=MATE
X-MATE-Bugzilla-Product=gedit
X-MATE-Bugzilla-Component=general
X-MATE-Bugzilla-Version=@VERSION@
X-MATE-Bugzilla-ExtraInfoScript=@FULL_LIBEXECDIR@/gedit-2/gedit-bugreport.sh

+ 11
- 0
data/gedit.pc.in View File

@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: gedit
Description: gedit
Requires: gtksourceview-2.0
Version: @VERSION@
Cflags: -I${includedir}/gedit-@GEDIT_API_VERSION@
Libs: -L${libdir} @GEDIT_IMPLIB@

+ 537
- 0
data/gedit.schemas.in.in View File

@@ -0,0 +1,537 @@
<mateconfschemafile>
<schemalist>
<schema>
<key>/schemas/apps/gedit-2/preferences/editor/font/use_default_font</key>
<applyto>/apps/gedit-2/preferences/editor/font/use_default_font</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>TRUE</default>
<locale name="C">
<short>Use Default Font</short>
<long>Whether to use the system's default fixed width font for editing
text instead of a font specific to gedit. If this option is turned
off, then the font named in the "Editor Font" option will be
used instead of the system font.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/font/editor_font</key>
<applyto>/apps/gedit-2/preferences/editor/font/editor_font</applyto>
<owner>gedit</owner>
<type>string</type>
<locale name="C">
<default><!-- Translators: This is the Editor Font.
This is a Pango font-->Monospace 12</default>
<short>Editor Font</short>
<long>A custom font that will be used for the editing area.
This will only take effect if the "Use Default Font" option is
turned off.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/colors/scheme</key>
<applyto>/apps/gedit-2/preferences/editor/colors/scheme</applyto>
<owner>gedit</owner>
<type>string</type>
<default>classic</default>
<locale name="C">
<short>Style Scheme</short>
<long>The ID of a GtkSourceView Style Scheme used to
color the text.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/save/create_backup_copy</key>
<applyto>/apps/gedit-2/preferences/editor/save/create_backup_copy</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>FALSE</default>
<locale name="C">
<short>Create Backup Copies</short>
<long>Whether gedit should create backup copies for the files
it saves. You can set the backup file extension with the
"Backup Copy Extension" option.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/save/auto_save</key>
<applyto>/apps/gedit-2/preferences/editor/save/auto_save</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>FALSE</default>
<locale name="C">
<short>Autosave</short>
<long>Whether gedit should automatically save modified files
after a time interval. You can set the time interval with the
"Autosave Interval" option.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/save/auto_save_interval</key>
<applyto>/apps/gedit-2/preferences/editor/save/auto_save_interval</applyto>
<owner>gedit</owner>
<type>int</type>
<default>10</default>
<locale name="C">
<short>Autosave Interval</short>
<long>Number of minutes after which gedit will automatically
save modified files. This will only take effect if the "Autosave"
option is turned on.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/undo/undo_actions_limit</key>
<applyto>/apps/gedit-2/preferences/editor/undo/undo_actions_limit</applyto>
<owner>gedit</owner>
<type>int</type>
<default>25</default>
<locale name="C">
<short>Undo Actions Limit (DEPRECATED)</short>
<long>Maximum number of actions that gedit will be able to
undo or redo. Use "-1" for unlimited number of actions.
Deprecated since 2.12.0</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/undo/max_undo_actions</key>
<applyto>/apps/gedit-2/preferences/editor/undo/max_undo_actions</applyto>
<owner>gedit</owner>
<type>int</type>
<default>2000</default>
<locale name="C">
<short>Maximum Number of Undo Actions</short>
<long>Maximum number of actions that gedit will be able to
undo or redo. Use "-1" for unlimited number of actions.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/wrap_mode/wrap_mode</key>
<applyto>/apps/gedit-2/preferences/editor/wrap_mode/wrap_mode</applyto>
<owner>gedit</owner>
<type>string</type>
<default>GTK_WRAP_WORD</default>
<locale name="C">
<short>Line Wrapping Mode</short>
<long>Specifies how to wrap long lines in the editing area.
Use "GTK_WRAP_NONE" for no wrapping, "GTK_WRAP_WORD" for
wrapping at word boundaries, and "GTK_WRAP_CHAR" for wrapping
at individual character boundaries. Note that the values are
case-sensitive, so make sure they appear exactly as mentioned
here.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/tabs/tabs_size</key>
<applyto>/apps/gedit-2/preferences/editor/tabs/tabs_size</applyto>
<owner>gedit</owner>
<type>int</type>
<default>8</default>
<locale name="C">
<short>Tab Size</short>
<long>Specifies the number of spaces that should be displayed
instead of Tab characters.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/tabs/insert_spaces</key>
<applyto>/apps/gedit-2/preferences/editor/tabs/insert_spaces</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>FALSE</default>
<locale name="C">
<short>Insert spaces</short>
<long>Whether gedit should insert spaces instead of tabs.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/auto_indent/auto_indent</key>
<applyto>/apps/gedit-2/preferences/editor/auto_indent/auto_indent</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>FALSE</default>
<locale name="C">
<short>Automatic indent</short>
<long>Whether gedit should enable automatic indentation.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/line_numbers/display_line_numbers</key>
<applyto>/apps/gedit-2/preferences/editor/line_numbers/display_line_numbers</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>FALSE</default>
<locale name="C">
<short>Display Line Numbers</short>
<long>Whether gedit should display line numbers in the editing
area.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/current_line/highlight_current_line</key>
<applyto>/apps/gedit-2/preferences/editor/current_line/highlight_current_line</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>FALSE</default>
<locale name="C">
<short>Highlight Current Line</short>
<long>Whether gedit should highlight the current line.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/bracket_matching/bracket_matching</key>
<applyto>/apps/gedit-2/preferences/editor/bracket_matching/bracket_matching</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>FALSE</default>
<locale name="C">
<short>Highlight Matching Bracket</short>
<long>Whether gedit should highlight the bracket matching the selected one.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/right_margin/display_right_margin</key>
<applyto>/apps/gedit-2/preferences/editor/right_margin/display_right_margin</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>FALSE</default>
<locale name="C">
<short>Display Right Margin</short>
<long>Whether gedit should display the right margin in the editing
area.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/right_margin/right_margin_position</key>
<applyto>/apps/gedit-2/preferences/editor/right_margin/right_margin_position</applyto>
<owner>gedit</owner>
<type>int</type>
<default>80</default>
<locale name="C">
<short>Right Margin Position</short>
<long>Specifies the position of the right margin.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/smart_home_end/smart_home_end</key>
<applyto>/apps/gedit-2/preferences/editor/smart_home_end/smart_home_end</applyto>
<owner>gedit</owner>
<type>string</type>
<default>after</default>
<locale name="C">
<short>Smart Home End</short>
<long>Specifies how the cursor moves when the HOME and END keys
are pressed. Use "DISABLED" to always move at the start/end of
the line, "AFTER" to move to the start/end of the line the first
time the keys are pressed and to the start/end of the text ignoring
whitespaces the second time the keys are pressed, "BEFORE" to
move to the start/end of the text before moving to the start/end
of the line and "ALWAYS" to always move to the start/end of the
text instead of the start/end of the line.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/ui/toolbar/toolbar_visible</key>
<applyto>/apps/gedit-2/preferences/ui/toolbar/toolbar_visible</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>TRUE</default>
<locale name="C">
<short>Toolbar is Visible</short>
<long>Whether the toolbar should be visible in editing windows.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/ui/toolbar/toolbar_buttons_style</key>
<applyto>/apps/gedit-2/preferences/ui/toolbar/toolbar_buttons_style</applyto>
<owner>gedit</owner>
<type>string</type>
<default>@TOOLBAR_STYLE@</default>
<locale name="C">
<short>Toolbar Buttons Style</short>
<long>Style for the toolbar buttons. Possible values are
"GEDIT_TOOLBAR_SYSTEM" to use the system's default style,
"GEDIT_TOOLBAR_ICONS" to display icons only,
"GEDIT_TOOLBAR_ICONS_AND_TEXT" to display both icons and text, and
"GEDIT_TOOLBAR_ICONS_BOTH_HORIZ" to display prioritized text beside icons.
Note that the values are case-sensitive, so make sure they
appear exactly as mentioned here.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/ui/statusbar/statusbar_visible</key>
<applyto>/apps/gedit-2/preferences/ui/statusbar/statusbar_visible</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>TRUE</default>
<locale name="C">
<short>Status Bar is Visible</short>
<long>Whether the status bar at the bottom of editing windows
should be visible.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/ui/side_pane/side_pane_visible</key>
<applyto>/apps/gedit-2/preferences/ui/side_pane/side_pane_visible</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>FALSE</default>
<locale name="C">
<short>Side Pane is Visible</short>
<long>Whether the side pane at the left of editing windows
should be visible.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/ui/bottom_panel/bottom_panel_visible</key>
<applyto>/apps/gedit-2/preferences/ui/bottom_panel/bottom_panel_visible</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>FALSE</default>
<locale name="C">
<short>Bottom Panel is Visible</short>
<long>Whether the bottom panel at the bottom of editing windows
should be visible.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/print/page/print_syntax_highlighting</key>
<applyto>/apps/gedit-2/preferences/print/page/print_syntax_highlighting</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>TRUE</default>
<locale name="C">
<short>Print Syntax Highlighting</short>
<long>Whether gedit should print syntax highlighting when
printing documents.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/print/page/print_header</key>
<applyto>/apps/gedit-2/preferences/print/page/print_header</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>TRUE</default>
<locale name="C">
<short>Print Header</short>
<long>Whether gedit should include a document header when
printing documents.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/print/page/print_wrap_mode</key>
<applyto>/apps/gedit-2/preferences/print/page/print_wrap_mode</applyto>
<owner>gedit</owner>
<type>string</type>
<default>GTK_WRAP_WORD</default>
<locale name="C">
<short>Printing Line Wrapping Mode</short>
<long>Specifies how to wrap long lines for printing. Use
"GTK_WRAP_NONE" for no wrapping, "GTK_WRAP_WORD" for wrapping
at word boundaries, and "GTK_WRAP_CHAR" for wrapping at
individual character boundaries. Note that the values are
case-sensitive, so make sure they appear exactly as mentioned
here.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/print/page/print_line_numbers</key>
<applyto>/apps/gedit-2/preferences/print/page/print_line_numbers</applyto>
<owner>gedit</owner>
<type>int</type>
<default>0</default>
<locale name="C">
<short>Print Line Numbers</short>
<long>If this value is 0, then no line numbers will be
inserted when printing a document. Otherwise, gedit will
print line numbers every such number of lines.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/print/fonts/print_font_body_pango</key>
<applyto>/apps/gedit-2/preferences/print/fonts/print_font_body_pango</applyto>
<owner>gedit</owner>
<type>string</type>
<locale name="C">
<default><!-- Translators: This is the Body font for printing.
This is a Pango font.-->Monospace 9</default>
<short>Body Font for Printing</short>
<long>Specifies the font to use for a document's body when
printing documents.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/print/fonts/print_font_header_pango</key>
<applyto>/apps/gedit-2/preferences/print/fonts/print_font_header_pango</applyto>
<owner>gedit</owner>
<type>string</type>
<locale name="C">
<default><!-- Translators: This is the Header font for printing.
This is a Pango font.-->Sans 11</default>
<short>Header Font for Printing</short>
<long>Specifies the font to use for page headers when printing
a document. This will only take effect if the "Print Header"
option is turned on.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/print/fonts/print_font_numbers_pango</key>
<applyto>/apps/gedit-2/preferences/print/fonts/print_font_numbers_pango</applyto>
<owner>gedit</owner>
<type>string</type>
<locale name="C">
<default><!-- Translators: This is the Line Number font for printing.
This is a Pango font.-->Sans 8</default>
<short>Line Number Font for Printing</short>
<long>Specifies the font to use for line numbers when
printing. This will only take effect if the "Print Line
Numbers" option is non-zero.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/ui/recents/max_recents</key>
<applyto>/apps/gedit-2/preferences/ui/recents/max_recents</applyto>
<owner>gedit</owner>
<type>int</type>
<default>5</default>
<locale name="C">
<short>Maximum Recent Files</short>
<long>Specifies the maximum number of recently opened files
that will be displayed in the "Recent Files" submenu.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/encodings/auto_detected</key>
<applyto>/apps/gedit-2/preferences/encodings/auto_detected</applyto>
<owner>gedit</owner>
<type>list</type>
<list_type>string</list_type>
<locale name="C">
<default><!-- Translators: This is the sorted list of encodings used by gedit
for automatic detection of the file encoding. You may want to customize it adding
encodings that are common in your country, for instance the GB18030 encoding
for the Chinese translation. You may also want to remove the ISO-8859-15 encoding
(covering English and most Western European languages) if you think people
in you country will rarely use it.
"CURRENT" is a magic value used by gedit and it represents the encoding
for the current locale, so please don't translate the "CURRENT" term.
Only recognized encodings are used.
See http://svn.mate.org/viewcvs/gedit/trunk/gedit/gedit-encodings.c?view=markup for
a list of supported encodings -->[UTF-8,CURRENT,ISO-8859-15,UTF-16]</default>
<short>Automatically Detected Encodings</short>
<long>Sorted list of encodings used by gedit for automatically detecting the encoding of
a file. "CURRENT" represents the current locale encoding. Only recognized encodings are used.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/encodings/shown_in_menu</key>
<applyto>/apps/gedit-2/preferences/encodings/shown_in_menu</applyto>
<owner>gedit</owner>
<type>list</type>
<list_type>string</list_type>
<locale name="C">
<default><!-- Translators: This is the list of encodings shown by default in the Character Encoding
menu in open/save file selector. Only recognized encodings are displayed.-->[ISO-8859-15]</default>
<short>Encodings shown in menu</short>
<long>List of encodings shown in the Character Encoding menu in open/save file selector.
Only recognized encodings are used.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/syntax_highlighting/enable</key>
<applyto>/apps/gedit-2/preferences/syntax_highlighting/enable</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>TRUE</default>
<locale name="C">
<short>Enable Syntax Highlighting</short>
<long>Whether gedit should enable syntax highlighting.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/plugins/active-plugins</key>
<applyto>/apps/gedit-2/plugins/active-plugins</applyto>
<owner>gedit</owner>
<type>list</type>
<list_type>string</list_type>
<default>[@ACTIVE_PLUGINS@]</default>
<locale name="C">
<short>Active plugins</short>
<long>List of active plugins. It contains the "Location" of the active plugins. See the .gedit-plugin file for obtaining
the "Location" of a given plugin.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/save/writable_vfs_schemes</key>
<applyto>/apps/gedit-2/preferences/editor/save/writable_vfs_schemes</applyto>
<owner>gedit</owner>
<type>list</type>
<list_type>string</list_type>
<default>[dav,davs,ftp,sftp,smb,ssh]</default>
<locale name="C">
<short>Writable VFS schemes</short>
<long>List of VFS schemes gedit supports in write mode. The 'file' scheme
is writable by default.</long>
</locale>
</schema>

<schema>
<key>/schemas/apps/gedit-2/preferences/editor/cursor_position/restore_cursor_position</key>
<applyto>/apps/gedit-2/preferences/editor/cursor_position/restore_cursor_position</applyto>
<owner>gedit</owner>
<type>bool</type>
<default>TRUE</default>
<locale name="C">
<short>Restore Previous Cursor Position</short>
<long>Whether gedit should restore the previous cursor position when