Author: fcrozat
Date: Mon Feb 19 18:03:26 2007
New Revision: 122850
Added:
packages/cooker/vte/current/SOURCES/vte-0.15.3-fixrtpcrash.patch
Modified:
packages/cooker/vte/current/SPECS/vte.spec
Log:
Patch2 (SVN): fix crash when opening tag (speciale dedicade for rtp)
Added: packages/cooker/vte/current/SOURCES/vte-0.15.3-fixrtpcrash.patch
==============================================================================
--- (empty file)
+++ packages/cooker/vte/current/SOURCES/vte-0.15.3-fixrtpcrash.patch Mon Feb
19 18:03:26 2007
@@ -0,0 +1,59 @@
+Index: src/vte.c
+===================================================================
+--- vte/src/vte.c (r�vision 1698)
++++ vte/src/vte.c (r�vision 1700)
+@@ -11811,9 +11811,12 @@
+ again = vte_terminal_process_incoming(terminal);
+ } while (again && need_processing (terminal));
+ if (!again && terminal->pvt->update_regions == NULL) {
+- active_terminals = g_list_delete_link (active_terminals,
+- l);
+- terminal->pvt->active = NULL;
++ if (terminal->pvt->active != NULL) {
++ active_terminals = g_list_delete_link (
++ active_terminals,
++ terminal->pvt->active);
++ terminal->pvt->active = NULL;
++ }
+ if (terminal->pvt->pty_input) {
+ _vte_terminal_enable_input_source(terminal);
+ }
+@@ -11912,9 +11915,12 @@
+
+ again = update_regions (terminal);
+ if (!again) {
+- active_terminals = g_list_delete_link (active_terminals,
+- l);
+- terminal->pvt->active = NULL;
++ if (terminal->pvt->active != NULL) {
++ active_terminals = g_list_delete_link (
++ active_terminals,
++ terminal->pvt->active);
++ terminal->pvt->active = NULL;
++ }
+ if (terminal->pvt->pty_input) {
+ _vte_terminal_enable_input_source (terminal);
+ }
+@@ -11951,7 +11957,7 @@
+ static gboolean
+ update_timeout (gpointer data)
+ {
+- GList *l;
++ GList *l, *next;
+ gboolean redraw = FALSE;
+
+ GDK_THREADS_ENTER();
+@@ -11966,10 +11972,12 @@
+ process_timeout_tag = VTE_INVALID_SOURCE;
+ }
+
+- for (l = active_terminals; l != NULL; l = g_list_next (l)) {
++ for (l = active_terminals; l != NULL; l = next) {
+ VteTerminal *terminal = l->data;
+ gboolean again;
+
++ next = g_list_next (l);
++
+ if (l != active_terminals) {
+ _vte_debug_print (VTE_DEBUG_WORK, "T");
+ }
Modified: packages/cooker/vte/current/SPECS/vte.spec
==============================================================================
--- packages/cooker/vte/current/SPECS/vte.spec (original)
+++ packages/cooker/vte/current/SPECS/vte.spec Mon Feb 19 18:03:26 2007
@@ -7,7 +7,7 @@
Name: vte
Version: 0.15.3
-Release: %mkrel 2
+Release: %mkrel 3
Summary: An terminal emulator widget
License: LGPL
Group: System/Libraries
@@ -17,6 +17,8 @@
Patch0: vte-xpath.patch
# (fc) 0.15.3-2mdv fix scrolling in screen (SVN)
Patch1: vte-0.15.3-fixscrolling.patch
+# (fc) 0.15.3-3mdv fix crash when opening tab (SVN)
+Patch2: vte-0.15.3-fixrtpcrash.patch
BuildRequires: gtk+2-devel
BuildRequires: libxft-devel
@@ -68,6 +70,7 @@
%setup -q
%patch0 -p1 -b .xpath
%patch1 -p1 -b .fixscrolling
+%patch2 -p1 -b .fixrtpcrash
#needed by patch0
WANT_AUTOCONF_2_5=1 autoconf