[vte3] Fix shrinking terminals
Matthias Clasen
mclasen at fedoraproject.org
Fri Jan 14 16:34:59 UTC 2011
commit b0113ba86869a6f3132432aa822e26247f1fb163
Author: Matthias Clasen <mclasen at redhat.com>
Date: Fri Jan 14 11:34:37 2011 -0500
Fix shrinking terminals
honey-I-shrank-the-terminal.patch | 28 ++++++++++++++++++++++++++++
vte3.spec | 7 ++++++-
2 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/honey-I-shrank-the-terminal.patch b/honey-I-shrank-the-terminal.patch
new file mode 100644
index 0000000..f8f19db
--- /dev/null
+++ b/honey-I-shrank-the-terminal.patch
@@ -0,0 +1,28 @@
+diff -up vte-0.27.4/src/vte.c.grow-up vte-0.27.4/src/vte.c
+--- vte-0.27.4/src/vte.c.grow-up 2011-01-11 13:37:37.000000000 -0500
++++ vte-0.27.4/src/vte.c 2011-01-14 11:31:27.159520002 -0500
+@@ -8133,6 +8133,24 @@ vte_terminal_init(VteTerminal *terminal)
+
+ _vte_debug_print(VTE_DEBUG_LIFECYCLE, "vte_terminal_init()\n");
+
++#if GTK_CHECK_VERSION (2, 91, 2)
++ static GtkCssProvider *provider;
++ GtkStyleContext *context;
++
++ if (provider == NULL) {
++ provider = gtk_css_provider_new ();
++ gtk_css_provider_load_from_data (GTK_CSS_PROVIDER (provider),
++ "VteTerminal {\n"
++ " -VteTerminal-inner-border: 1;\n"
++ "}\n", -1, NULL);
++ }
++
++ context = gtk_widget_get_style_context (GTK_WIDGET (terminal));
++ gtk_style_context_add_provider (context,
++ GTK_STYLE_PROVIDER (provider),
++ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
++#endif
++
+ /* Initialize private data. */
+ pvt = terminal->pvt = G_TYPE_INSTANCE_GET_PRIVATE (terminal, VTE_TYPE_TERMINAL, VteTerminalPrivate);
+
diff --git a/vte3.spec b/vte3.spec
index c108a03..8e83170 100644
--- a/vte3.spec
+++ b/vte3.spec
@@ -1,12 +1,13 @@
Name: vte3
Version: 0.27.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A terminal emulator
License: LGPLv2+
Group: User Interface/X
#VCS: git:git://git.gnome.org/vte
Source: http://download.gnome.org/sources/vte/0.27/vte-%{version}.tar.bz2
+Patch0: honey-I-shrank-the-terminal.patch
BuildRequires: gtk3-devel >= 2.99
@@ -36,6 +37,7 @@ vte.
%prep
%setup -q -n vte-%{version}
+%patch0 -p1 -b .grow-up
%build
%configure \
@@ -79,6 +81,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%doc %{_datadir}/gtk-doc/html/vte-2.90
%changelog
+* Fri Jan 14 2011 Matthias Clasen <mclasen at redhat.com> 0.27.4-2
+- Stop shrinking-terminal disease
+
* Tue Jan 11 2011 Matthias Clasen <mclasen at redhat.com> 0.27.4-1
- Update to 0.27.4
More information about the scm-commits
mailing list