gtk+: Add patch to fix file selector segfault contributed by HEXaBYTE.
authorFlorian Boor <florian.boor@kernelconcepts.de>
Tue, 12 Jun 2007 15:11:51 +0000 (15:11 +0000)
committerFlorian Boor <florian.boor@kernelconcepts.de>
Tue, 12 Jun 2007 15:11:51 +0000 (15:11 +0000)
packages/gtk+/files/filesel-fix-segfault.patch [new file with mode: 0644]
packages/gtk+/gtk+_2.10.12.bb
packages/gtk+/gtk+_2.6.10.bb

diff --git a/packages/gtk+/files/filesel-fix-segfault.patch b/packages/gtk+/files/filesel-fix-segfault.patch
new file mode 100644 (file)
index 0000000..7b37d4b
--- /dev/null
@@ -0,0 +1,19 @@
+--- gtk+-2.10.12_/gtk/gtkfilesel.c     2007-06-12 14:00:38.000000000 +0200
++++ gtk+-2.10.12/gtk/gtkfilesel.c      2007-06-12 14:40:32.000000000 +0200
+@@ -2444,9 +2444,13 @@
+               if (!is_file)
+                 {
+-                  gtk_file_selection_dir_activate (tree_view, path, 
+-                          gtk_tree_view_get_column (tree_view, DIR_COLUMN),
+-                          user_data);
++                 fs->last_selected = g_strdup (g_ptr_array_index (new_names, index));
++                 gtk_file_selection_dir_activate (tree_view, path, 
++                                                  gtk_tree_view_get_column (tree_view, DIR_COLUMN),
++                                                  user_data);
++                 gtk_tree_path_free (path);
++                 return;
++                
+                 }
+                 
+               gtk_tree_path_free (path);
index 3756d85..895d10e 100644 (file)
@@ -1,6 +1,6 @@
 require gtk-2.10.inc
 
-PR = "r0"
+PR = "r1"
 
 # disable per default - untested and not all patches included.
 DEFAULT_PREFERENCE = "-1"
@@ -21,6 +21,7 @@ SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-${PV}.tar.bz2 \
            file://single-click.patch;patch=1 \
            file://spinbutton.patch;patch=1 \
            file://gtk+-handhelds.patch;patch=1 \
+           file://filesel-fix-segfault.patch;patch=1 \
           "
 
 #check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
index ed2d9ae..cab18db 100644 (file)
@@ -5,7 +5,7 @@ SECTION = "libs"
 LICENSE = "LGPL"
 PRIORITY = "optional"
 DEPENDS = "glib-2.0 pango atk jpeg libpng libxext libxcursor gtk-doc libgcrypt"
-PR = "r10"
+PR = "r11"
 
 SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.6/gtk+-${PV}.tar.bz2 \
            file://help.patch;patch=1 \
@@ -33,7 +33,9 @@ SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.6/gtk+-${PV}.tar.bz2 \
            file://gtk.keynav.gtktextview.patch;patch=1;pnum=0 \
            file://gtk.keynav.gtktreeview.patch;patch=1;pnum=0 \
            file://gtk.keynav.gtkwidget.patch;patch=1;pnum=0 \
-           file://gtk+-2.6.10-bg.patch;patch=1"
+           file://gtk+-2.6.10-bg.patch;patch=1 \
+           file://filesel-fix-segfault.patch;patch=1 \
+           "
 
 inherit autotools pkgconfig