From adb934701975f6b0214475d1a8d0d1ce727b9d4d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 16:32:59 +0200 Subject: Adding upstream version 3.38.1. Signed-off-by: Daniel Baumann --- data/gedit-osx.gschema.override | 5 + data/gedit.1 | 104 +++++++ data/icons/meson.build | 9 + data/icons/org.gnome.gedit-symbolic.svg | 39 +++ data/icons/org.gnome.gedit.Devel.svg | 1 + data/icons/org.gnome.gedit.svg | 376 +++++++++++++++++++++++ data/meson.build | 97 ++++++ data/org.gnome.gedit-ms-windows.gschema.override | 5 + data/org.gnome.gedit.appdata.xml.in | 49 +++ data/org.gnome.gedit.desktop.in | 26 ++ data/org.gnome.gedit.gschema.xml.in | 308 +++++++++++++++++++ data/org.gnome.gedit.service.in | 3 + data/privacy-policy.md | 4 + data/screenshot.png | Bin 0 -> 95886 bytes 14 files changed, 1026 insertions(+) create mode 100644 data/gedit-osx.gschema.override create mode 100644 data/gedit.1 create mode 100644 data/icons/meson.build create mode 100644 data/icons/org.gnome.gedit-symbolic.svg create mode 100644 data/icons/org.gnome.gedit.Devel.svg create mode 100644 data/icons/org.gnome.gedit.svg create mode 100644 data/meson.build create mode 100644 data/org.gnome.gedit-ms-windows.gschema.override create mode 100644 data/org.gnome.gedit.appdata.xml.in create mode 100644 data/org.gnome.gedit.desktop.in create mode 100644 data/org.gnome.gedit.gschema.xml.in create mode 100644 data/org.gnome.gedit.service.in create mode 100644 data/privacy-policy.md create mode 100644 data/screenshot.png (limited to 'data') diff --git a/data/gedit-osx.gschema.override b/data/gedit-osx.gschema.override new file mode 100644 index 0000000..bee32cc --- /dev/null +++ b/data/gedit-osx.gschema.override @@ -0,0 +1,5 @@ +[org.gnome.desktop.interface] +monospace-font-name = 'Menlo 12' + +[org.gnome.gedit.preferences.editor] +editor-font = 'Menlo 12' diff --git a/data/gedit.1 b/data/gedit.1 new file mode 100644 index 0000000..095ee6d --- /dev/null +++ b/data/gedit.1 @@ -0,0 +1,104 @@ +.TH GEDIT 1 "17 May 2010" +.SH NAME +\fBgedit\fP \- text editor for the GNOME Desktop + +.SH SYNOPSIS +.br +.B gedit +[\fIOPTION\fR...] [\fIFILE\fR...] [+\fILINE\fR[:\fICOLUMN\fR]] +.br +.B gedit +[\fIOPTION\fR...] - + +.SH DESCRIPTION +.B gedit +is the official text editor of the GNOME 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\-\-encoding\fR +Set the character encoding to be used for opening the files listed on the command line. +.TP +\fB\-\-list-encodings\fR +Display list of possible values for the encoding option and exit. +.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\-s, \-\-standalone\fR +Run +.B gedit +in standalone mode. +.TP +\fB\-w, \-\-wait\fR +Open files and block the +.B gedit +process. +.TP +\fB\-\-help\fR +Prints the command line options. +.TP +\fB\-\-version\fR +Output version information and exit. +.TP +\fBFILE\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.gnome.org", or load a file from a FTP server, +like "ftp://ftp.gnome.org/robots.txt". +.TP +\fB-\fR +.B gedit will read from stdin +.TP +\fB+LINE\fR +For the first file, go to the line specified by LINE (do not insert a space between the "+" sign and the number). +If LINE is missing, go to the last line. +.TP +\fBCOLUMN\fR +For the first file, go to the column specified by COLUMN. +If COLUMN is missing, go to the first column. + +.SH BUGS +If you find a bug, please report it at the GNOME bug tracker. See https://wiki.gnome.org/Apps/Gedit/ReportingBugs. +.SH AUTHORS +Paolo Maggi (paolo@gnome.org) +.TP +Paolo Borelli (pborelli@gnome.org) +.TP +Steve Frécinaux (code@istique.net) +.TP +Jesse van den Kieboom (jessevdk@gnome.org) +.TP +Ignacio Casal Quinteiro +.TP +James Willcox (jwillcox@gnome.org) +.TP +Federico Mena Quintero (federico@novell.com) +.TP +Chema Celorio + diff --git a/data/icons/meson.build b/data/icons/meson.build new file mode 100644 index 0000000..c1f2edb --- /dev/null +++ b/data/icons/meson.build @@ -0,0 +1,9 @@ +install_data( + 'org.gnome.gedit.svg', + install_dir: get_option('datadir') / 'icons/hicolor/scalable/apps' +) + +install_data( + 'org.gnome.gedit-symbolic.svg', + install_dir: get_option('datadir') / 'icons/hicolor/symbolic/apps' +) diff --git a/data/icons/org.gnome.gedit-symbolic.svg b/data/icons/org.gnome.gedit-symbolic.svg new file mode 100644 index 0000000..b75c950 --- /dev/null +++ b/data/icons/org.gnome.gedit-symbolic.svg @@ -0,0 +1,39 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/icons/org.gnome.gedit.Devel.svg b/data/icons/org.gnome.gedit.Devel.svg new file mode 100644 index 0000000..16c8749 --- /dev/null +++ b/data/icons/org.gnome.gedit.Devel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/data/icons/org.gnome.gedit.svg b/data/icons/org.gnome.gedit.svg new file mode 100644 index 0000000..af97ab9 --- /dev/null +++ b/data/icons/org.gnome.gedit.svg @@ -0,0 +1,376 @@ + + + Adwaita Icon Template + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + GNOME Design Team + + + + + Adwaita Icon Template + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 0000000..bb61387 --- /dev/null +++ b/data/meson.build @@ -0,0 +1,97 @@ +subdir('icons') + +install_man('gedit.1') + +appdata = 'org.gnome.gedit.appdata.xml' +appdata_file = i18n.merge_file( + appdata, + input: appdata + '.in', + output: appdata, + po_dir: '../po/', + install: true, + install_dir: get_option('datadir') / 'metainfo' +) + +appstream_util = find_program('appstream-util', required: get_option('require_all_tests')) +if appstream_util.found() + test( + 'validate-appdata', + appstream_util, + args: ['validate-relax', '--nonet', appdata_file] + ) +endif + +desktop_file = 'org.gnome.gedit.desktop' +desktop_output_file = i18n.merge_file( + desktop_file, + type: 'desktop', + input: desktop_file + '.in', + output: desktop_file, + po_dir: '../po/', + install: true, + install_dir: get_option('datadir') / 'applications' +) + +desktop_file_validate = find_program('desktop-file-validate', required: get_option('require_all_tests')) +if desktop_file_validate.found() + test( + 'validate-desktop', + desktop_file_validate, + args: [desktop_output_file] + ) +endif + +active_plugins = [ + 'docinfo', + 'filebrowser', + 'modelines', + 'sort', + 'spell', +] + +quoted_plugins = [] +foreach plugin_name : active_plugins + quoted_plugins += '\'@0@\''.format(plugin_name) +endforeach + +gschema_in = configuration_data() +gschema_in.set('ACTIVE_PLUGINS', ', '.join(quoted_plugins)) + +gschema_file = configure_file( + input: 'org.gnome.gedit.gschema.xml.in', + output: 'org.gnome.gedit.gschema.xml', + configuration: gschema_in, + install_dir: get_option('datadir') / 'glib-2.0/schemas' +) + +gschema_dtd = gio_dep.get_pkgconfig_variable('schemasdir') / 'gschema.dtd' + +xmllint = find_program('xmllint', required: get_option('require_all_tests')) +if xmllint.found() + test( + 'validate-gschema', + xmllint, + args: [ + '--noout', + '--dtdvalid', gschema_dtd, + gschema_file, + ] + ) +endif + +if host_machine.system() == 'windows' + install_data( + 'org.gnome.gedit-ms-windows.gschema.override', + install_dir: get_option('datadir') / 'glib-2.0/schemas' + ) +endif + +service_in = configuration_data() +service_in.set('bindir', get_option('prefix') / get_option('bindir')) + +configure_file( + input: 'org.gnome.gedit.service.in', + output: 'org.gnome.gedit.service', + configuration: service_in, + install_dir: get_option('datadir') / 'dbus-1/services' +) diff --git a/data/org.gnome.gedit-ms-windows.gschema.override b/data/org.gnome.gedit-ms-windows.gschema.override new file mode 100644 index 0000000..007ae32 --- /dev/null +++ b/data/org.gnome.gedit-ms-windows.gschema.override @@ -0,0 +1,5 @@ +[org.gnome.desktop.interface] +monospace-font-name = 'Monospace 11' + +[org.gnome.gedit.preferences.editor] +editor-font = 'Monospace 11' diff --git a/data/org.gnome.gedit.appdata.xml.in b/data/org.gnome.gedit.appdata.xml.in new file mode 100644 index 0000000..da41962 --- /dev/null +++ b/data/org.gnome.gedit.appdata.xml.in @@ -0,0 +1,49 @@ + + + + org.gnome.gedit.desktop + CC0-1.0 + GPL-2.0+ + gedit + Edit text files + +

+ gedit is the text editor of the GNOME desktop environment. +

+

+ The first goal of gedit is to be easy to use, with a simple interface by + default. More advanced features are available by enabling plugins. +

+
+ + HiDpiIcon + HighContrast + ModernToolkit + UserDocs + + + + https://gitlab.gnome.org/GNOME/gedit/raw/master/data/screenshot.png + + + https://wiki.gnome.org/Apps/Gedit + https://gitlab.gnome.org/GNOME/gedit/issues + https://liberapay.com/gedit/ + https://help.gnome.org/users/gedit/stable/ + https://wiki.gnome.org/TranslationProject + swilmet@gnome.org + GNOME + GNOME + gedit + + + + + + + + + + + +
diff --git a/data/org.gnome.gedit.desktop.in b/data/org.gnome.gedit.desktop.in new file mode 100644 index 0000000..0200813 --- /dev/null +++ b/data/org.gnome.gedit.desktop.in @@ -0,0 +1,26 @@ +[Desktop Entry] +Name=Text Editor +Comment=Edit text files +Exec=gedit %U +Terminal=false +Type=Application +StartupNotify=true +MimeType=text/plain; +# TRANSLATORS: Do NOT translate or transliterate this text! +# This is an icon file name. +Icon=org.gnome.gedit +Categories=GNOME;GTK;Utility;TextEditor; +Actions=new-window;new-document; +# TRANSLATORS: Do NOT translate or localize the semicolons! +# The list MUST also end with a semicolon! +# Search terms to find this application. +Keywords=Text;Editor;Plaintext;Write;gedit; +DBusActivatable=true + +[Desktop Action new-window] +Name=New Window +Exec=gedit --new-window + +[Desktop Action new-document] +Name=New Document +Exec=gedit --new-document diff --git a/data/org.gnome.gedit.gschema.xml.in b/data/org.gnome.gedit.gschema.xml.in new file mode 100644 index 0000000..b797d84 --- /dev/null +++ b/data/org.gnome.gedit.gschema.xml.in @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + '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. + + + 'tango' + Style Scheme + The ID of a GtkSourceView Style Scheme used to color the text. + + + false + Create Backup Copies + Whether gedit should create backup copies for the files it saves. + + + false + Autosave + Whether gedit should automatically save modified files after a time interval. You can set the time interval with the “Autosave Interval” option. + + + 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. + + + 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. + + + + + + + + 'word' + Line Wrapping Mode + Specifies how to wrap long lines in the editing area. Use “none” for no wrapping, “word” for wrapping at word boundaries, and “char” for wrapping at individual character boundaries. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here. + + + + + + + 'word' + Last split mode choice for line wrapping mode + Specifies the last split mode used with line wrapping mode, so that when wrapping mode is off we still remember the split mode choice. Use “word” for wrapping at word boundaries, and “char” for wrapping at individual character boundaries. + + + 8 + Tab Size + Specifies the number of spaces that should be displayed instead of Tab characters. + + + false + Insert spaces + Whether gedit should insert spaces instead of tabs. + + + true + Automatic indent + Whether gedit should enable automatic indentation. + + + true + Display Line Numbers + Whether gedit should display line numbers in the editing area. + + + true + Highlight Current Line + Whether gedit should highlight the current line. + + + true + Highlight Matching Brackets + Whether gedit should highlight matching brackets. + + + false + Display Right Margin + Whether gedit should display the right margin in the editing area. + + + 80 + Right Margin Position + Specifies the position of the right margin. + + + 'none' + Document background pattern type + Whether the document will get a background pattern painted. + + + + + + + + + '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. + + + true + Restore Previous Cursor Position + Whether gedit should restore the previous cursor position when a file is loaded. + + + true + Enable Syntax Highlighting + Whether gedit should enable syntax highlighting. + + + true + Enable Search Highlighting + Whether gedit should highlight all the occurrences of the searched text. + + + true + Ensure Trailing Newline + Whether gedit will ensure that documents always end with a trailing newline. + + + + + 'auto' + Notebook Show Tabs Mode + Specifies when to show the notebook tabs. Use “never” to never show the tabs, “always” to always show the tabs, and “auto” to show the tabs only when there is more than one tab. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here. + + + true + Status Bar is Visible + Whether the status bar at the bottom of editing windows should be visible. + + + false + Side panel is Visible + Whether the side panel at the left of editing windows should be visible. + + + false + + + + + true + Print Syntax Highlighting + Whether gedit should print syntax highlighting when printing documents. + + + true + Print Header + Whether gedit should include a document header when printing documents. + + + + + + + + 'word' + Printing Line Wrapping Mode + Specifies how to wrap long lines for printing. Use “none” for no wrapping, “word” for wrapping at word boundaries, and “char” for wrapping at individual character boundaries. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here. + + + 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. + + + + 'Monospace 9' + Body Font for Printing + Specifies the font to use for a document’s body when printing documents. + + + + '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. + + + + '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. + + + 25 + Margin Left + The left margin, in millimeters. + + + 15 + Margin Top + The top margin, in millimeters. + + + 25 + Margin Right + The right margin, in millimeters. + + + 25 + Margin Bottom + The bottom margin, in millimeters. + + + + + [''] + Candidate Encodings + List of candidate encodings shown in the Character Encoding menu in the open/save file chooser. + “CURRENT” represents the current locale encoding. Only recognized encodings are used. + The default value is the empty list, in which case gedit will choose good defaults depending on the country and language. + + + + + + + + + + 0 + + + (900, 700) + + + 200 + + + '' + + + 140 + + + '' + + + + + 0 + + + true + + + + + [''] + + + [''] + + + + + [@ACTIVE_PLUGINS@] + Active plugins + List of active plugins. + + + diff --git a/data/org.gnome.gedit.service.in b/data/org.gnome.gedit.service.in new file mode 100644 index 0000000..cf5a5b2 --- /dev/null +++ b/data/org.gnome.gedit.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.gnome.gedit +Exec=@bindir@/gedit --gapplication-service diff --git a/data/privacy-policy.md b/data/privacy-policy.md new file mode 100644 index 0000000..7ecedfc --- /dev/null +++ b/data/privacy-policy.md @@ -0,0 +1,4 @@ +Privacy policy of gedit +======================= + +We don't store any data. diff --git a/data/screenshot.png b/data/screenshot.png new file mode 100644 index 0000000..5eb409c Binary files /dev/null and b/data/screenshot.png differ -- cgit v1.2.3