From 528c1e5ff51e213936e800fc5a9a25da99c0bdf2 Mon Sep 17 00:00:00 2001 From: Perberos Date: Mon, 7 Nov 2011 16:46:58 -0300 Subject: initial --- data/Makefile.am | 49 +++++ data/gedit-bugreport.sh.in | 73 ++++++ data/gedit.1 | 76 +++++++ data/gedit.desktop.in.in | 18 ++ data/gedit.pc.in | 11 + data/gedit.schemas.in.in | 537 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 764 insertions(+) create mode 100755 data/Makefile.am create mode 100755 data/gedit-bugreport.sh.in create mode 100755 data/gedit.1 create mode 100755 data/gedit.desktop.in.in create mode 100755 data/gedit.pc.in create mode 100755 data/gedit.schemas.in.in (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100755 index 00000000..0a09ccaf --- /dev/null +++ b/data/Makefile.am @@ -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 diff --git a/data/gedit-bugreport.sh.in b/data/gedit-bugreport.sh.in new file mode 100755 index 00000000..24ee6a48 --- /dev/null +++ b/data/gedit-bugreport.sh.in @@ -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 " /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 + diff --git a/data/gedit.1 b/data/gedit.1 new file mode 100755 index 00000000..8a1e87c9 --- /dev/null +++ b/data/gedit.1 @@ -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 + diff --git a/data/gedit.desktop.in.in b/data/gedit.desktop.in.in new file mode 100755 index 00000000..a8c456e2 --- /dev/null +++ b/data/gedit.desktop.in.in @@ -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 diff --git a/data/gedit.pc.in b/data/gedit.pc.in new file mode 100755 index 00000000..78a3f1e6 --- /dev/null +++ b/data/gedit.pc.in @@ -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@ diff --git a/data/gedit.schemas.in.in b/data/gedit.schemas.in.in new file mode 100755 index 00000000..62bd4f84 --- /dev/null +++ b/data/gedit.schemas.in.in @@ -0,0 +1,537 @@ + + + + /schemas/apps/gedit-2/preferences/editor/font/use_default_font + /apps/gedit-2/preferences/editor/font/use_default_font + gedit + bool + TRUE + + Use Default Font + 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. + + + + + /schemas/apps/gedit-2/preferences/editor/font/editor_font + /apps/gedit-2/preferences/editor/font/editor_font + gedit + string + + Monospace 12 + Editor Font + 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. + + + + + /schemas/apps/gedit-2/preferences/editor/colors/scheme + /apps/gedit-2/preferences/editor/colors/scheme + gedit + string + classic + + Style Scheme + The ID of a GtkSourceView Style Scheme used to + color the text. + + + + + /schemas/apps/gedit-2/preferences/editor/save/create_backup_copy + /apps/gedit-2/preferences/editor/save/create_backup_copy + gedit + bool + FALSE + + Create Backup Copies + Whether gedit should create backup copies for the files + it saves. You can set the backup file extension with the + "Backup Copy Extension" option. + + + + + /schemas/apps/gedit-2/preferences/editor/save/auto_save + /apps/gedit-2/preferences/editor/save/auto_save + gedit + bool + FALSE + + Autosave + Whether gedit should automatically save modified files + after a time interval. You can set the time interval with the + "Autosave Interval" option. + + + + + /schemas/apps/gedit-2/preferences/editor/save/auto_save_interval + /apps/gedit-2/preferences/editor/save/auto_save_interval + gedit + int + 10 + + Autosave Interval + Number of minutes after which gedit will automatically + save modified files. This will only take effect if the "Autosave" + option is turned on. + + + + + /schemas/apps/gedit-2/preferences/editor/undo/undo_actions_limit + /apps/gedit-2/preferences/editor/undo/undo_actions_limit + gedit + int + 25 + + Undo Actions Limit (DEPRECATED) + 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 + + + + + /schemas/apps/gedit-2/preferences/editor/undo/max_undo_actions + /apps/gedit-2/preferences/editor/undo/max_undo_actions + gedit + int + 2000 + + Maximum Number of Undo Actions + Maximum number of actions that gedit will be able to + undo or redo. Use "-1" for unlimited number of actions. + + + + + /schemas/apps/gedit-2/preferences/editor/wrap_mode/wrap_mode + /apps/gedit-2/preferences/editor/wrap_mode/wrap_mode + gedit + string + GTK_WRAP_WORD + + Line Wrapping Mode + 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. + + + + + /schemas/apps/gedit-2/preferences/editor/tabs/tabs_size + /apps/gedit-2/preferences/editor/tabs/tabs_size + gedit + int + 8 + + Tab Size + Specifies the number of spaces that should be displayed + instead of Tab characters. + + + + + /schemas/apps/gedit-2/preferences/editor/tabs/insert_spaces + /apps/gedit-2/preferences/editor/tabs/insert_spaces + gedit + bool + FALSE + + Insert spaces + Whether gedit should insert spaces instead of tabs. + + + + + /schemas/apps/gedit-2/preferences/editor/auto_indent/auto_indent + /apps/gedit-2/preferences/editor/auto_indent/auto_indent + gedit + bool + FALSE + + Automatic indent + Whether gedit should enable automatic indentation. + + + + + /schemas/apps/gedit-2/preferences/editor/line_numbers/display_line_numbers + /apps/gedit-2/preferences/editor/line_numbers/display_line_numbers + gedit + bool + FALSE + + Display Line Numbers + Whether gedit should display line numbers in the editing + area. + + + + + /schemas/apps/gedit-2/preferences/editor/current_line/highlight_current_line + /apps/gedit-2/preferences/editor/current_line/highlight_current_line + gedit + bool + FALSE + + Highlight Current Line + Whether gedit should highlight the current line. + + + + + /schemas/apps/gedit-2/preferences/editor/bracket_matching/bracket_matching + /apps/gedit-2/preferences/editor/bracket_matching/bracket_matching + gedit + bool + FALSE + + Highlight Matching Bracket + Whether gedit should highlight the bracket matching the selected one. + + + + + /schemas/apps/gedit-2/preferences/editor/right_margin/display_right_margin + /apps/gedit-2/preferences/editor/right_margin/display_right_margin + gedit + bool + FALSE + + Display Right Margin + Whether gedit should display the right margin in the editing + area. + + + + + /schemas/apps/gedit-2/preferences/editor/right_margin/right_margin_position + /apps/gedit-2/preferences/editor/right_margin/right_margin_position + gedit + int + 80 + + Right Margin Position + Specifies the position of the right margin. + + + + + /schemas/apps/gedit-2/preferences/editor/smart_home_end/smart_home_end + /apps/gedit-2/preferences/editor/smart_home_end/smart_home_end + gedit + string + after + + Smart Home End + 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. + + + + + /schemas/apps/gedit-2/preferences/ui/toolbar/toolbar_visible + /apps/gedit-2/preferences/ui/toolbar/toolbar_visible + gedit + bool + TRUE + + Toolbar is Visible + Whether the toolbar should be visible in editing windows. + + + + + /schemas/apps/gedit-2/preferences/ui/toolbar/toolbar_buttons_style + /apps/gedit-2/preferences/ui/toolbar/toolbar_buttons_style + gedit + string + @TOOLBAR_STYLE@ + + Toolbar Buttons Style + 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. + + + + + /schemas/apps/gedit-2/preferences/ui/statusbar/statusbar_visible + /apps/gedit-2/preferences/ui/statusbar/statusbar_visible + gedit + bool + TRUE + + Status Bar is Visible + Whether the status bar at the bottom of editing windows + should be visible. + + + + + /schemas/apps/gedit-2/preferences/ui/side_pane/side_pane_visible + /apps/gedit-2/preferences/ui/side_pane/side_pane_visible + gedit + bool + FALSE + + Side Pane is Visible + Whether the side pane at the left of editing windows + should be visible. + + + + + /schemas/apps/gedit-2/preferences/ui/bottom_panel/bottom_panel_visible + /apps/gedit-2/preferences/ui/bottom_panel/bottom_panel_visible + gedit + bool + FALSE + + Bottom Panel is Visible + Whether the bottom panel at the bottom of editing windows + should be visible. + + + + + /schemas/apps/gedit-2/preferences/print/page/print_syntax_highlighting + /apps/gedit-2/preferences/print/page/print_syntax_highlighting + gedit + bool + TRUE + + Print Syntax Highlighting + Whether gedit should print syntax highlighting when + printing documents. + + + + + /schemas/apps/gedit-2/preferences/print/page/print_header + /apps/gedit-2/preferences/print/page/print_header + gedit + bool + TRUE + + Print Header + Whether gedit should include a document header when + printing documents. + + + + + /schemas/apps/gedit-2/preferences/print/page/print_wrap_mode + /apps/gedit-2/preferences/print/page/print_wrap_mode + gedit + string + GTK_WRAP_WORD + + Printing Line Wrapping Mode + 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. + + + + + /schemas/apps/gedit-2/preferences/print/page/print_line_numbers + /apps/gedit-2/preferences/print/page/print_line_numbers + gedit + int + 0 + + Print Line Numbers + 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. + + + + + /schemas/apps/gedit-2/preferences/print/fonts/print_font_body_pango + /apps/gedit-2/preferences/print/fonts/print_font_body_pango + gedit + string + + Monospace 9 + Body Font for Printing + Specifies the font to use for a document's body when + printing documents. + + + + + /schemas/apps/gedit-2/preferences/print/fonts/print_font_header_pango + /apps/gedit-2/preferences/print/fonts/print_font_header_pango + gedit + string + + Sans 11 + Header Font for Printing + 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. + + + + + /schemas/apps/gedit-2/preferences/print/fonts/print_font_numbers_pango + /apps/gedit-2/preferences/print/fonts/print_font_numbers_pango + gedit + string + + Sans 8 + Line Number Font for Printing + Specifies the font to use for line numbers when + printing. This will only take effect if the "Print Line + Numbers" option is non-zero. + + + + + /schemas/apps/gedit-2/preferences/ui/recents/max_recents + /apps/gedit-2/preferences/ui/recents/max_recents + gedit + int + 5 + + Maximum Recent Files + Specifies the maximum number of recently opened files + that will be displayed in the "Recent Files" submenu. + + + + + /schemas/apps/gedit-2/preferences/encodings/auto_detected + /apps/gedit-2/preferences/encodings/auto_detected + gedit + list + string + + [UTF-8,CURRENT,ISO-8859-15,UTF-16] + Automatically Detected Encodings + 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. + + + + + /schemas/apps/gedit-2/preferences/encodings/shown_in_menu + /apps/gedit-2/preferences/encodings/shown_in_menu + gedit + list + string + + [ISO-8859-15] + Encodings shown in menu + List of encodings shown in the Character Encoding menu in open/save file selector. + Only recognized encodings are used. + + + + + /schemas/apps/gedit-2/preferences/syntax_highlighting/enable + /apps/gedit-2/preferences/syntax_highlighting/enable + gedit + bool + TRUE + + Enable Syntax Highlighting + Whether gedit should enable syntax highlighting. + + + + + /schemas/apps/gedit-2/plugins/active-plugins + /apps/gedit-2/plugins/active-plugins + gedit + list + string + [@ACTIVE_PLUGINS@] + + Active plugins + 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. + + + + + /schemas/apps/gedit-2/preferences/editor/save/writable_vfs_schemes + /apps/gedit-2/preferences/editor/save/writable_vfs_schemes + gedit + list + string + [dav,davs,ftp,sftp,smb,ssh] + + Writable VFS schemes + List of VFS schemes gedit supports in write mode. The 'file' scheme + is writable by default. + + + + + /schemas/apps/gedit-2/preferences/editor/cursor_position/restore_cursor_position + /apps/gedit-2/preferences/editor/cursor_position/restore_cursor_position + gedit + bool + TRUE + + Restore Previous Cursor Position + Whether gedit should restore the previous cursor position when a file is loaded. + + + + + /schemas/apps/gedit-2/preferences/editor/search_highlighting/enable + /apps/gedit-2/preferences/editor/search_highlighting/enable + gedit + bool + TRUE + + Enable Search Highlighting + Whether gedit should highlight all the occurrences of the searched text. + + + + + -- cgit v1.2.1