pluma: Fix segfault.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2015-03-04 06:19:13 +07:00
parent 91447f6558
commit bc3211240b
2 changed files with 204 additions and 1 deletions

View file

@ -0,0 +1,200 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="pluma">
<schema path="/org/mate/pluma/" id="org.mate.pluma">
<key type="b" name="use-default-font">
<default>true</default>
<summary>Use Default Font</summary>
<description>Whether to use the system's default fixed width font for editing text instead of a font specific to pluma. If this option is turned off, then the font named in the "Editor Font" option will be used instead of the system font.</description>
</key>
<key type="s" name="editor-font">
<default l10n="messages" context="editor-font">'Monospace 12'</default>
<summary>Editor Font</summary>
<description>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.</description>
</key>
<key type="s" name="color-scheme">
<default>'tango'</default>
<summary>Style Scheme</summary>
<description>The ID of a GtkSourceView Style Scheme used to color the text.</description>
</key>
<key type="b" name="create-backup-copy">
<default>false</default>
<summary>Create Backup Copies</summary>
<description>Whether pluma should create backup copies for the files it saves. You can set the backup file extension with the "Backup Copy Extension" option.</description>
</key>
<key type="b" name="auto-save">
<default>false</default>
<summary>Autosave</summary>
<description>Whether pluma should automatically save modified files after a time interval. You can set the time interval with the "Autosave Interval" option.</description>
</key>
<key type="i" name="auto-save-interval">
<default>10</default>
<summary>Autosave Interval</summary>
<description>Number of minutes after which pluma will automatically save modified files. This will only take effect if the "Autosave" option is turned on.</description>
</key>
<key type="as" name="writable-vfs-schemes">
<default>[ 'dav', 'davs', 'ftp', 'sftp', 'smb', 'ssh' ]</default>
<summary>Writable VFS schemes</summary>
<description>List of VFS schemes pluma supports in write mode. The 'file' scheme is writable by default.</description>
</key>
<key type="i" name="max-undo-actions">
<default>2000</default>
<summary>Maximum Number of Undo Actions</summary>
<description>Maximum number of actions that pluma will be able to undo or redo. Use "-1" for unlimited number of actions.</description>
</key>
<key type="s" name="wrap-mode">
<default>'GTK_WRAP_WORD'</default>
<summary>Line Wrapping Mode</summary>
<description>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.</description>
</key>
<key type="i" name="tabs-size">
<default>4</default>
<summary>Tab Size</summary>
<description>Specifies the number of spaces that should be displayed instead of Tab characters.</description>
</key>
<key type="b" name="insert-spaces">
<default>false</default>
<summary>Insert spaces</summary>
<description>Whether pluma should insert spaces instead of tabs.</description>
</key>
<key type="b" name="auto-indent">
<default>false</default>
<summary>Automatic indent</summary>
<description>Whether pluma should enable automatic indentation.</description>
</key>
<key type="b" name="display-line-numbers">
<default>false</default>
<summary>Display Line Numbers</summary>
<description>Whether pluma should display line numbers in the editing area.</description>
</key>
<key type="b" name="highlight-current-line">
<default>false</default>
<summary>Highlight Current Line</summary>
<description>Whether pluma should highlight the current line.</description>
</key>
<key type="b" name="bracket-matching">
<default>false</default>
<summary>Highlight Matching Bracket</summary>
<description>Whether pluma should highlight the bracket matching the selected one.</description>
</key>
<key type="b" name="display-right-margin">
<default>false</default>
<summary>Display Right Margin</summary>
<description>Whether pluma should display the right margin in the editing area.</description>
</key>
<key type="i" name="right-margin-position">
<default>80</default>
<summary>Right Margin Position</summary>
<description>Specifies the position of the right margin.</description>
</key>
<key type="s" name="smart-home-end">
<default>'after'</default>
<summary>Smart Home End</summary>
<description>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.</description>
</key>
<key type="b" name="restore-cursor-position">
<default>true</default>
<summary>Restore Previous Cursor Position</summary>
<description>Whether pluma should restore the previous cursor position when a file is loaded.</description>
</key>
<key type="b" name="enable-search-highlighting">
<default>true</default>
<summary>Enable Search Highlighting</summary>
<description>Whether pluma should highlight all the occurrences of the searched text.</description>
</key>
<key type="b" name="enable-syntax-highlighting">
<default>true</default>
<summary>Enable Syntax Highlighting</summary>
<description>Whether pluma should enable syntax highlighting.</description>
</key>
<key type="b" name="toolbar-visible">
<default>true</default>
<summary>Toolbar is Visible</summary>
<description>Whether the toolbar should be visible in editing windows.</description>
</key>
<key type="s" name="toolbar-buttons-style">
<default>'PLUMA_TOOLBAR_SYSTEM'</default>
<summary>Toolbar Buttons Style</summary>
<description>Style for the toolbar buttons. Possible values are "PLUMA_TOOLBAR_SYSTEM" to use the system's default style, "PLUMA_TOOLBAR_ICONS" to display icons only, "PLUMA_TOOLBAR_ICONS_AND_TEXT" to display both icons and text, and "PLUMA_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.</description>
</key>
<key type="b" name="statusbar-visible">
<default>true</default>
<summary>Status Bar is Visible</summary>
<description>Whether the status bar at the bottom of editing windows should be visible.</description>
</key>
<key type="b" name="side-pane-visible">
<default>false</default>
<summary>Side Pane is Visible</summary>
<description>Whether the side pane at the left of editing windows should be visible.</description>
</key>
<key type="b" name="bottom-panel-visible">
<default>false</default>
<summary>Bottom Panel is Visible</summary>
<description>Whether the bottom panel at the bottom of editing windows should be visible.</description>
</key>
<key type="i" name="max-recents">
<default>5</default>
<summary>Maximum Recent Files</summary>
<description>Specifies the maximum number of recently opened files that will be displayed in the "Recent Files" submenu.</description>
</key>
<key type="b" name="print-syntax-highlighting">
<default>true</default>
<summary>Print Syntax Highlighting</summary>
<description>Whether pluma should print syntax highlighting when printing documents.</description>
</key>
<key type="b" name="print-header">
<default>true</default>
<summary>Print Header</summary>
<description>Whether pluma should include a document header when printing documents.</description>
</key>
<key type="s" name="print-wrap-mode">
<default>'GTK_WRAP_WORD'</default>
<summary>Printing Line Wrapping Mode</summary>
<description>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.</description>
</key>
<key type="i" name="print-line-numbers">
<default>0</default>
<summary>Print Line Numbers</summary>
<description>If this value is 0, then no line numbers will be inserted when printing a document. Otherwise, pluma will print line numbers every such number of lines.</description>
</key>
<key type="s" name="print-font-body-pango">
<default l10n="messages" context="print-font-body-pango">'Monospace 9'</default>
<summary>Body Font for Printing</summary>
<description>Specifies the font to use for a document's body when printing documents.</description>
</key>
<key type="s" name="print-font-header-pango">
<default l10n="messages" context="print-font-header-pango">'Sans 11'</default>
<summary>Header Font for Printing</summary>
<description>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.</description>
</key>
<key type="s" name="print-font-numbers-pango">
<default l10n="messages" context="print-font-numbers-pango">'Sans 8'</default>
<summary>Line Number Font for Printing</summary>
<description>Specifies the font to use for line numbers when printing. This will only take effect if the "Print Line Numbers" option is non-zero.</description>
</key>
<key type="as" name="auto-detected-encodings">
<default l10n="messages" context="auto-detected">[ 'UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16' ]</default>
<summary>Automatically Detected Encodings</summary>
<description>Sorted list of encodings used by pluma for automatically detecting the encoding of a file. "CURRENT" represents the current locale encoding. Only recognized encodings are used.</description>
</key>
<key type="as" name="shown-in-menu-encodings">
<default l10n="messages" context="shown-in-menu">[ 'ISO-8859-15' ]</default>
<summary>Encodings shown in menu</summary>
<description>List of encodings shown in the Character Encoding menu in open/save file selector. Only recognized encodings are used.</description>
</key>
<key type="as" name="history-search-for">
<default>[]</default>
<summary>History for "search for" entries</summary>
<description>List of entries in "search for" textbox.</description>
</key>
<key type="as" name="history-replace-with">
<default>[]</default>
<summary>History for "replace with" entries</summary>
<description>List of entries in "replace with" textbox.</description>
</key>
<key type="as" name="active-plugins">
<default>[ 'docinfo', 'modelines', 'filebrowser', 'spell', 'time' ]</default>
<summary>Active plugins</summary>
<description>List of active plugins. It contains the "Location" of the active plugins. See the .pluma-plugin file for obtaining the "Location" of a given plugin.</description>
</key>
</schema>
</schemalist>

View file

@ -25,7 +25,7 @@
PRGNAM=pluma
VERSION=${VERSION:-1.9.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_msb}
if [ -z "$ARCH" ]; then
@ -116,6 +116,9 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \;
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
# Ugly Fix
cp $CWD/org.mate.pluma.gschema.xml $PKG/usr/share/glib-2.0/schemas/
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh