[mate-terminal] Add patch to change default settings
Dan Mashal
vicodan at fedoraproject.org
Fri May 3 19:38:42 UTC 2013
commit 3f9b01f66e61f98ccefa312ce38fb21bbbb4d538
Author: Dan Mashal <dan.mashal at fedoraproject.org>
Date: Fri May 3 12:38:19 2013 -0700
Add patch to change default settings
better_defaults.patch | 64 +++++++++++++++++++++++++++++++++++++++++++++++++
mate-terminal.spec | 12 +++++++--
2 files changed, 73 insertions(+), 3 deletions(-)
---
diff --git a/better_defaults.patch b/better_defaults.patch
new file mode 100644
index 0000000..6071bee
--- /dev/null
+++ b/better_defaults.patch
@@ -0,0 +1,64 @@
+diff -uNrp b/src/org.mate.terminal.gschema.xml.in a/src/org.mate.terminal.gschema.xml.in
+--- b/src/org.mate.terminal.gschema.xml.in 2013-05-03 12:27:08.171922065 -0700
++++ a/src/org.mate.terminal.gschema.xml.in 2013-05-03 12:28:24.237320974 -0700
+@@ -89,12 +89,12 @@
+ <description>True if the menubar should be shown in new windows, for windows/tabs with this profile.</description>
+ </key>
+ <key name="foreground-color" type="s">
+- <default>'#000000'</default>
++ <default>'#FFFFFF'</default>
+ <summary>Default color of text in the terminal</summary>
+ <description>Default color of text in the terminal, as a color specification (can be HTML-style hex digits, or a color name such as "red").</description>
+ </key>
+ <key name="background-color" type="s">
+- <default>'#FFFFDD'</default>
++ <default>'#000000'</default>
+ <summary>Default color of terminal background</summary>
+ <description>Default color of terminal background, as a color specification (can be HTML-style hex digits, or a color name such as "red").</description>
+ </key>
+@@ -254,7 +254,7 @@
+ <description>Sets what code the delete key generates. Possible values are "ascii-del" for the ASCII DEL character, "control-h" for Control-H (AKA the ASCII BS character), "escape-sequence" for the escape sequence typically bound to backspace or delete. "escape-sequence" is normally considered the correct setting for the Delete key.</description>
+ </key>
+ <key name="use-theme-colors" type="b">
+- <default>true</default>
++ <default>false</default>
+ <summary>Whether to use the colors from the theme for the terminal widget</summary>
+ <description>If true, the theme color scheme used for text entry boxes will be used for the terminal, instead of colors provided by the user.</description>
+ </key>
+diff -uNrp b/src/terminal-profile.c a/src/terminal-profile.c
+--- b/src/terminal-profile.c 2013-05-03 12:27:08.173922022 -0700
++++ a/src/terminal-profile.c 2013-05-03 12:29:31.243927029 -0700
+@@ -127,7 +127,7 @@ enum
+
+ /* Keep these in sync with the GSettings schema! */
+ #define DEFAULT_ALLOW_BOLD (TRUE)
+-#define DEFAULT_BACKGROUND_COLOR ("#FFFFDD")
++#define DEFAULT_BACKGROUND_COLOR ("#000000")
+ #define DEFAULT_BOLD_COLOR_SAME_AS_FG (TRUE)
+ #define DEFAULT_BACKGROUND_DARKNESS (0.5)
+ #define DEFAULT_BACKGROUND_IMAGE_FILE ("")
+@@ -143,13 +143,13 @@ enum
+ #define DEFAULT_DELETE_BINDING (VTE_ERASE_DELETE_SEQUENCE)
+ #define DEFAULT_EXIT_ACTION (TERMINAL_EXIT_CLOSE)
+ #define DEFAULT_FONT ("Monospace 12")
+-#define DEFAULT_FOREGROUND_COLOR ("#000000")
++#define DEFAULT_FOREGROUND_COLOR ("#FFFFFF")
+ #define DEFAULT_LOGIN_SHELL (FALSE)
+ #define DEFAULT_NAME (NULL)
+ #define DEFAULT_PALETTE (terminal_palettes[TERMINAL_PALETTE_TANGO])
+ #define DEFAULT_SCROLL_BACKGROUND (TRUE)
+ #define DEFAULT_SCROLLBACK_LINES (512)
+-#define DEFAULT_SCROLLBACK_UNLIMITED (FALSE)
++#define DEFAULT_SCROLLBACK_UNLIMITED (TRUE)
+ #define DEFAULT_SCROLLBAR_POSITION (TERMINAL_SCROLLBAR_RIGHT)
+ #define DEFAULT_SCROLL_ON_KEYSTROKE (TRUE)
+ #define DEFAULT_SCROLL_ON_OUTPUT (FALSE)
+@@ -161,7 +161,7 @@ enum
+ #define DEFAULT_USE_CUSTOM_DEFAULT_SIZE (FALSE)
+ #define DEFAULT_USE_SKEY (TRUE)
+ #define DEFAULT_USE_SYSTEM_FONT (TRUE)
+-#define DEFAULT_USE_THEME_COLORS (TRUE)
++#define DEFAULT_USE_THEME_COLORS (FALSE)
+ #define DEFAULT_VISIBLE_NAME (N_("Unnamed"))
+ #define DEFAULT_WORD_CHARS ("-A-Za-z0-9,./?%&#:_=+@~")
+
diff --git a/mate-terminal.spec b/mate-terminal.spec
index 2b5ba76..0990adb 100644
--- a/mate-terminal.spec
+++ b/mate-terminal.spec
@@ -1,11 +1,14 @@
Summary: Terminal emulator for MATE
Name: mate-terminal
Version: 1.6.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv3+
URL: http://mate-desktop.org
Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
+#Default to black bg white fg, unlimited scrollback, turn off use theme default
+Patch0: better_defaults.patch
+
BuildRequires: dconf-devel
BuildRequires: desktop-file-utils
BuildRequires: glib2-devel
@@ -26,6 +29,7 @@ clickable URLs.
%prep
%setup -q
+%patch0 -p1
NOCONFIGURE=1 ./autogen.sh
%build
@@ -69,9 +73,11 @@ update-desktop-database &> /dev/null || :
%{_datadir}/glib-2.0/schemas/org.mate.terminal.gschema.xml
%changelog
-* Wed Apr 03 2013 Dan Mashal <dan.mashal at fedoraproject.org> - 1.6.0-1
-- Bugfix release. See Cangelog.
+* Fri May 03 2013 Dan Mashal <dan.mashal at fedoraproject.org> - 1.6.1-2
+- Add patch to fix annoying default settings
+* Wed Apr 03 2013 Dan Mashal <dan.mashal at fedoraproject.org> - 1.6.1-1
+- Bugfix release. See Cangelog.
* Wed Apr 03 2013 Dan Mashal <dan.mashal at fedoraproject.org> - 1.6.0-1
- Update to stable 1.6.0 release
More information about the scm-commits
mailing list