rpms/gtk2/devel system-log-crash.patch, NONE, 1.1 gtk2.spec, 1.263, 1.264
Matthias Clasen (mclasen)
fedora-extras-commits at redhat.com
Mon Oct 22 13:35:01 UTC 2007
- Previous message (by thread): rpms/nspluginwrapper/devel .cvsignore, 1.5, 1.6 nspluginwrapper.spec, 1.22, 1.23 sources, 1.6, 1.7 nspluginwrapper-0.9.91.4-config.patch, 1.1, NONE
- Next message (by thread): rpms/gtk2/F-8 system-log-crash.patch, NONE, 1.1 gtk2.spec, 1.263, 1.264
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mclasen
Update of /cvs/extras/rpms/gtk2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15844
Modified Files:
gtk2.spec
Added Files:
system-log-crash.patch
Log Message:
Fix a crash in gnome-system-log
system-log-crash.patch:
--- NEW FILE system-log-crash.patch ---
diff -up gtk+-2.12.1/gtk/gtktreeview.c.system-log gtk+-2.12.1/gtk/gtktreeview.c
--- gtk+-2.12.1/gtk/gtktreeview.c.system-log 2007-10-18 21:51:23.000000000 -0400
+++ gtk+-2.12.1/gtk/gtktreeview.c 2007-10-18 21:53:18.000000000 -0400
@@ -13276,18 +13276,24 @@ gtk_tree_view_get_visible_range (GtkTree
{
GtkRBTree *tree;
GtkRBNode *node;
-
+ gboolean retval;
+
g_return_val_if_fail (GTK_IS_TREE_VIEW (tree_view), FALSE);
if (!tree_view->priv->tree)
return FALSE;
+ retval = TRUE;
+
if (start_path)
{
_gtk_rbtree_find_offset (tree_view->priv->tree,
TREE_WINDOW_Y_TO_RBTREE_Y (tree_view, 0),
&tree, &node);
- *start_path = _gtk_tree_view_find_path (tree_view, tree, node);
+ if (tree)
+ *start_path = _gtk_tree_view_find_path (tree_view, tree, node);
+ else
+ retval = FALSE;
}
if (end_path)
@@ -13300,10 +13306,13 @@ gtk_tree_view_get_visible_range (GtkTree
y = TREE_WINDOW_Y_TO_RBTREE_Y (tree_view, tree_view->priv->vadjustment->page_size) - 1;
_gtk_rbtree_find_offset (tree_view->priv->tree, y, &tree, &node);
- *end_path = _gtk_tree_view_find_path (tree_view, tree, node);
+ if (tree)
+ *end_path = _gtk_tree_view_find_path (tree_view, tree, node);
+ else
+ retval = FALSE;
}
- return TRUE;
+ return retval;
}
static void
Index: gtk2.spec
===================================================================
RCS file: /cvs/extras/rpms/gtk2/devel/gtk2.spec,v
retrieving revision 1.263
retrieving revision 1.264
diff -u -r1.263 -r1.264
--- gtk2.spec 18 Oct 2007 03:32:59 -0000 1.263
+++ gtk2.spec 22 Oct 2007 13:34:17 -0000 1.264
@@ -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: LGPLv2+
Group: System Environment/Libraries
Source: http://download.gnome.org/sources/gtk+/2.12/gtk+-%{version}.tar.bz2
@@ -34,6 +34,9 @@
# http://bugzilla.gnome.org/show_bug.cgi?id=482531
Patch3: firefox-print-preview.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=488119
+Patch4: system-log-crash.patch
+
BuildRequires: atk-devel >= %{atk_version}
BuildRequires: pango-devel >= %{pango_version}
BuildRequires: glib2-devel >= %{glib2_version}
@@ -111,6 +114,7 @@
%patch1 -p1 -b .set-invisible-char-to-bullet
%patch2 -p1 -b .workaround
%patch3 -p1 -b .firefox-print-preview
+%patch4 -p1 -b .system-log-crash
for i in config.guess config.sub ; do
test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i .
@@ -293,6 +297,9 @@
%{_datadir}/gtk-2.0
%changelog
+* Mon Oct 22 2007 Matthias Clasen <mclasen at redhat.com> - 2.12.1-4
+- Fix a crash in gnome-system-log (#321701)
+
* Wed Oct 17 2007 Matthias Clasen <mclasen at redhat.com> - 2.12.1-2
- Fix a crash in the firefox print preview (#336771)
- Previous message (by thread): rpms/nspluginwrapper/devel .cvsignore, 1.5, 1.6 nspluginwrapper.spec, 1.22, 1.23 sources, 1.6, 1.7 nspluginwrapper-0.9.91.4-config.patch, 1.1, NONE
- Next message (by thread): rpms/gtk2/F-8 system-log-crash.patch, NONE, 1.1 gtk2.spec, 1.263, 1.264
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list