fedora-cvs-commits@redhat.com
[Top] [All Lists]

rpms/gtk2/devel gtk+-2.10.3-sylpheed-crash.patch, NONE, 1.1 gtk2.spec, 1

Subject: rpms/gtk2/devel gtk+-2.10.3-sylpheed-crash.patch, NONE, 1.1 gtk2.spec, 1.179, 1.180
From:
Date: Fri, 8 Sep 2006 15:57:03 -0400
Author: mclasen

Update of /cvs/dist/rpms/gtk2/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv1529

Modified Files:
        gtk2.spec 
Added Files:
        gtk+-2.10.3-sylpheed-crash.patch 
Log Message:
fix a sylpheed crash


gtk+-2.10.3-sylpheed-crash.patch:
 gtktextbuffer.c |   19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)

--- NEW FILE gtk+-2.10.3-sylpheed-crash.patch ---
--- gtk+-2.10.3/gtk/gtktextbuffer.c.sylpheed-crash      2006-09-08 
15:18:40.000000000 -0400
+++ gtk+-2.10.3/gtk/gtktextbuffer.c     2006-09-08 15:23:10.000000000 -0400
@@ -564,13 +563,14 @@
 {
   GtkTextBuffer *buffer;
   GtkTextBufferPrivate *priv;
+  GSList *list;
 
   buffer = GTK_TEXT_BUFFER (object);
 
-  remove_all_selection_clipboards (buffer);
-
   priv = GTK_TEXT_BUFFER_GET_PRIVATE (buffer);
 
+  remove_all_selection_clipboards (buffer);
+
   if (buffer->tag_table)
     {
       _gtk_text_tag_table_remove_buffer (buffer->tag_table, buffer);
@@ -3509,19 +3509,7 @@
 static void
 remove_all_selection_clipboards (GtkTextBuffer *buffer)
 {
-  GSList *tmp_list = buffer->selection_clipboards;
-  while (tmp_list)
-    {
-      SelectionClipboard *selection_clipboard = tmp_list->data;
-      
-      if (gtk_clipboard_get_owner (selection_clipboard->clipboard) == G_OBJECT 
(buffer))
-       gtk_clipboard_clear (selection_clipboard->clipboard);
-      
-      g_free (selection_clipboard);
-
-      tmp_list = tmp_list->next;
-    }
-
+  g_slist_foreach (buffer->selection_clipboards, (GFunc)g_free, NULL);
   g_slist_free (buffer->selection_clipboards);
   buffer->selection_clipboards = NULL;
 }


Index: gtk2.spec
===================================================================
RCS file: /cvs/dist/rpms/gtk2/devel/gtk2.spec,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -r1.179 -r1.180
--- gtk2.spec   5 Sep 2006 16:02:32 -0000       1.179
+++ gtk2.spec   8 Sep 2006 19:57:01 -0000       1.180
@@ -16,7 +16,7 @@
 Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
 Name: gtk2
 Version: %{base_version}
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: LGPL
 Group: System Environment/Libraries
 Source: gtk+-%{version}.tar.bz2
@@ -35,6 +35,7 @@
 Patch7: gtk+-2.10.2-cursor-blink.patch
 Patch8: gtk+-2.10.2-im-reset.patch
 
+Patch9: gtk+-2.10.3-sylpheed-crash.patch
 
 BuildPrereq: atk-devel >= %{atk_version}
 BuildPrereq: pango-devel >= %{pango_version}
@@ -121,6 +122,7 @@
 
 %patch7 -p0 -b .cursor-blink
 %patch8 -p1 -b .im-reset
+%patch9 -p1 -b .sylpheed-crash
 
 for i in config.guess config.sub ; do
        test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i .
@@ -294,6 +296,9 @@
 %doc tmpdocs/examples
 
 %changelog
+* Fri Sep  8 2006 Matthias Clasen <mclasen@xxxxxxxxxx> - 2.10.3-3.fc6
+- Fix a Sylpheed crash  (#192101)
+
 * Mon Sep  5 2006 Matthias Clasen <mclasen@xxxxxxxxxx> - 2.10.3-2.fc6
 - Use fam for recent files
 

-- 
fedora-cvs-commits mailing list
fedora-cvs-commits@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-cvs-commits

<Prev in Thread] Current Thread [Next in Thread>
  • rpms/gtk2/devel gtk+-2.10.3-sylpheed-crash.patch, NONE, 1.1 gtk2.spec, 1.179, 1.180, fedora-cvs-commits <=