rpms/gnome-desktop/F-7 gnome-desktop-2.18.0-gnome-bg.patch, 1.3, 1.4 gnome-desktop.spec, 1.84, 1.85

Soren Sandmann Pedersen (ssp) fedora-extras-commits at redhat.com
Tue Nov 13 22:08:13 UTC 2007


Author: ssp

Update of /cvs/pkgs/rpms/gnome-desktop/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8781

Modified Files:
	gnome-desktop-2.18.0-gnome-bg.patch gnome-desktop.spec 
Log Message:
Fix bug 344461

gnome-desktop-2.18.0-gnome-bg.patch:

Index: gnome-desktop-2.18.0-gnome-bg.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-desktop/F-7/gnome-desktop-2.18.0-gnome-bg.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- gnome-desktop-2.18.0-gnome-bg.patch	23 Mar 2007 21:56:44 -0000	1.3
+++ gnome-desktop-2.18.0-gnome-bg.patch	13 Nov 2007 22:07:27 -0000	1.4
@@ -1,6 +1,7 @@
---- gnome-desktop-2.18.0/configure.in.gnome-bg	2007-03-12 18:38:32.000000000 -0400
-+++ gnome-desktop-2.18.0/configure.in	2007-03-23 16:58:40.000000000 -0400
-@@ -51,10 +51,10 @@
+diff -up gnome-desktop-2.18.3/configure.in.gnome-bg gnome-desktop-2.18.3/configure.in
+--- gnome-desktop-2.18.3/configure.in.gnome-bg	2007-07-02 13:22:43.000000000 -0400
++++ gnome-desktop-2.18.3/configure.in	2007-10-23 11:08:40.000000000 -0400
+@@ -51,10 +51,10 @@ AC_SUBST(GNOME_MICRO)
  AC_SUBST(GNOME_DISTRIBUTOR)
  AC_SUBST(GNOME_DATE)
  
@@ -15,9 +16,123 @@
  
  # As a special favour for vuntz, support --disable-deprecations
  
---- /dev/null	2007-03-05 16:01:59.843465905 -0500
-+++ gnome-desktop-2.18.0/libgnome-desktop/gnome-bg.c	2007-03-23 17:46:47.000000000 -0400
-@@ -0,0 +1,1704 @@
+diff -up /dev/null gnome-desktop-2.18.3/libgnome-desktop/libgnomeui/gnome-bg.h
+--- /dev/null	2007-11-13 12:35:54.536025751 -0500
++++ gnome-desktop-2.18.3/libgnome-desktop/libgnomeui/gnome-bg.h	2007-10-23 11:08:40.000000000 -0400
+@@ -0,0 +1,99 @@
++/* gnome-bg.h - 
++
++   Copyright 2007, Red Hat, Inc.
++
++   This file is part of the Gnome Library.
++
++   The Gnome Library is free software; you can redistribute it and/or
++   modify it under the terms of the GNU Library General Public License as
++   published by the Free Software Foundation; either version 2 of the
++   License, or (at your option) any later version.
++   
++   The Gnome Library is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++   Library General Public License for more details.
++   
++   You should have received a copy of the GNU Library General Public
++   License along with the Gnome Library; see the file COPYING.LIB.  If not,
++   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
++   Boston, MA 02111-1307, USA.
++
++   Author: Soren Sandmann <sandmann at redhat.com>
++*/
++
++#ifndef __GNOME_BG_H__
++#define __GNOME_BG_H__
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++#include <libgnomeui/libgnomeui.h>
++#include <gdk/gdk.h>
++
++#define GNOME_TYPE_BG            (gnome_bg_get_type ())
++#define GNOME_BG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_BG, GnomeBG))
++#define GNOME_BG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  GNOME_TYPE_BG, GnomeBGClass))
++#define GNOME_IS_BG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_BG))
++#define GNOME_IS_BG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GNOME_TYPE_BG))
++#define GNOME_BG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  GNOME_TYPE_BG, GnomeBGClass))
++
++typedef struct _GnomeBG GnomeBG;
++typedef struct _GnomeBGClass GnomeBGClass;
++
++typedef enum {
++	GNOME_BG_COLOR_SOLID,
++	GNOME_BG_COLOR_H_GRADIENT,
++	GNOME_BG_COLOR_V_GRADIENT
++} GnomeBGColorType;
++
++typedef enum {
++	GNOME_BG_PLACEMENT_TILED,
++	GNOME_BG_PLACEMENT_ZOOMED,
++	GNOME_BG_PLACEMENT_CENTERED,
++	GNOME_BG_PLACEMENT_SCALED,
++	GNOME_BG_PLACEMENT_FILL_SCREEN
++} GnomeBGPlacement;
++
++GType      gnome_bg_get_type           (void);
++GnomeBG *  gnome_bg_new                (void);
++void       gnome_bg_free               (GnomeBG               *img);
++void       gnome_bg_set_placement      (GnomeBG               *img,
++					GnomeBGPlacement       placement);
++void       gnome_bg_set_color          (GnomeBG               *img,
++					GnomeBGColorType       type,
++					GdkColor              *c1,
++					GdkColor              *c2);
++void       gnome_bg_set_uri            (GnomeBG               *img,
++					const char            *uri);
++void       gnome_bg_draw               (GnomeBG               *img,
++					GdkPixbuf             *dest);
++GdkPixmap *gnome_bg_create_pixmap      (GnomeBG               *img,
++					GdkWindow             *window,
++					int                    width,
++					int                    height,
++					gboolean               root);
++gboolean   gnome_bg_get_image_size     (GnomeBG	               *bg,
++					GnomeThumbnailFactory *factory,
++					int		       *width,
++					int		       *height);
++GdkPixbuf *gnome_bg_create_thumbnail   (GnomeBG               *bg,
++					GnomeThumbnailFactory *factory,
++					GdkScreen             *screen,
++					int		       dest_width,
++					int		       dest_height);
++gboolean   gnome_bg_is_dark            (GnomeBG               *img);
++gboolean   gnome_bg_changes_with_size  (GnomeBG               *img);
++
++
++/* Set a pixmap as root - not a GnomeBG method */
++void       gnome_bg_set_pixmap_as_root (GdkScreen             *screen,
++					GdkPixmap             *pixmap);
++
++
++#ifdef __cplusplus
++}
++#endif
++
++#endif
+diff -up gnome-desktop-2.18.3/libgnome-desktop/libgnomeui/Makefile.am.gnome-bg gnome-desktop-2.18.3/libgnome-desktop/libgnomeui/Makefile.am
+--- gnome-desktop-2.18.3/libgnome-desktop/libgnomeui/Makefile.am.gnome-bg	2007-07-02 13:21:44.000000000 -0400
++++ gnome-desktop-2.18.3/libgnome-desktop/libgnomeui/Makefile.am	2007-10-23 11:08:40.000000000 -0400
+@@ -1,4 +1,5 @@
+ libgnomeui_desktopdir = $(includedir)/gnome-desktop-2.0/libgnomeui
+ libgnomeui_desktop_HEADERS = \
+ 	gnome-ditem-edit.h \
+-	gnome-hint.h
++	gnome-hint.h       \
++	gnome-bg.h
+diff -up /dev/null gnome-desktop-2.18.3/libgnome-desktop/gnome-bg.c
+--- /dev/null	2007-11-13 12:35:54.536025751 -0500
++++ gnome-desktop-2.18.3/libgnome-desktop/gnome-bg.c	2007-11-13 16:17:11.000000000 -0500
+@@ -0,0 +1,1706 @@
 +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
 +   
 +gnomebg.c: Object for the desktop background.
@@ -1639,8 +1754,10 @@
 +	}
 +	
 +	if (!g_markup_parse_context_end_parse (context, err)) {
-+		slideshow_free (show);
-+		show = NULL;
++		if (show) {
++			slideshow_free (show);
++			show = NULL;
++		}
 +	}
 +	
 +	g_markup_parse_context_free (context);
@@ -1722,9 +1839,10 @@
 +	
 +	return FALSE;
 +}
---- gnome-desktop-2.18.0/libgnome-desktop/Makefile.am.gnome-bg	2007-03-12 18:18:57.000000000 -0400
-+++ gnome-desktop-2.18.0/libgnome-desktop/Makefile.am	2007-03-23 16:58:40.000000000 -0400
-@@ -18,7 +18,8 @@
+diff -up gnome-desktop-2.18.3/libgnome-desktop/Makefile.am.gnome-bg gnome-desktop-2.18.3/libgnome-desktop/Makefile.am
+--- gnome-desktop-2.18.3/libgnome-desktop/Makefile.am.gnome-bg	2007-07-02 13:21:44.000000000 -0400
++++ gnome-desktop-2.18.3/libgnome-desktop/Makefile.am	2007-10-23 11:08:40.000000000 -0400
+@@ -18,7 +18,8 @@ noinst_PROGRAMS = test-ditem test-hint t
  libgnome_desktop_2_la_SOURCES = \
  	gnome-desktop-item.c	\
  	gnome-ditem-edit.c	\
@@ -1734,114 +1852,3 @@
  
  libgnome_desktop_2_la_LIBADD = \
  	$(GNOME_DESKTOP_LIBS)
---- gnome-desktop-2.18.0/libgnome-desktop/libgnomeui/Makefile.am.gnome-bg	2007-03-12 18:18:57.000000000 -0400
-+++ gnome-desktop-2.18.0/libgnome-desktop/libgnomeui/Makefile.am	2007-03-23 16:58:40.000000000 -0400
-@@ -1,4 +1,5 @@
- libgnomeui_desktopdir = $(includedir)/gnome-desktop-2.0/libgnomeui
- libgnomeui_desktop_HEADERS = \
- 	gnome-ditem-edit.h \
--	gnome-hint.h
-+	gnome-hint.h       \
-+	gnome-bg.h
---- /dev/null	2007-03-05 16:01:59.843465905 -0500
-+++ gnome-desktop-2.18.0/libgnome-desktop/libgnomeui/gnome-bg.h	2007-03-23 16:58:40.000000000 -0400
-@@ -0,0 +1,99 @@
-+/* gnome-bg.h - 
-+
-+   Copyright 2007, Red Hat, Inc.
-+
-+   This file is part of the Gnome Library.
-+
-+   The Gnome Library is free software; you can redistribute it and/or
-+   modify it under the terms of the GNU Library General Public License as
-+   published by the Free Software Foundation; either version 2 of the
-+   License, or (at your option) any later version.
-+   
-+   The Gnome Library is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-+   Library General Public License for more details.
-+   
-+   You should have received a copy of the GNU Library General Public
-+   License along with the Gnome Library; see the file COPYING.LIB.  If not,
-+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-+   Boston, MA 02111-1307, USA.
-+
-+   Author: Soren Sandmann <sandmann at redhat.com>
-+*/
-+
-+#ifndef __GNOME_BG_H__
-+#define __GNOME_BG_H__
-+
-+#ifdef __cplusplus
-+extern "C" {
-+#endif
-+
-+#include <libgnomeui/libgnomeui.h>
-+#include <gdk/gdk.h>
-+
-+#define GNOME_TYPE_BG            (gnome_bg_get_type ())
-+#define GNOME_BG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_BG, GnomeBG))
-+#define GNOME_BG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  GNOME_TYPE_BG, GnomeBGClass))
-+#define GNOME_IS_BG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_BG))
-+#define GNOME_IS_BG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GNOME_TYPE_BG))
-+#define GNOME_BG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  GNOME_TYPE_BG, GnomeBGClass))
-+
-+typedef struct _GnomeBG GnomeBG;
-+typedef struct _GnomeBGClass GnomeBGClass;
-+
-+typedef enum {
-+	GNOME_BG_COLOR_SOLID,
-+	GNOME_BG_COLOR_H_GRADIENT,
-+	GNOME_BG_COLOR_V_GRADIENT
-+} GnomeBGColorType;
-+
-+typedef enum {
-+	GNOME_BG_PLACEMENT_TILED,
-+	GNOME_BG_PLACEMENT_ZOOMED,
-+	GNOME_BG_PLACEMENT_CENTERED,
-+	GNOME_BG_PLACEMENT_SCALED,
-+	GNOME_BG_PLACEMENT_FILL_SCREEN
-+} GnomeBGPlacement;
-+
-+GType      gnome_bg_get_type           (void);
-+GnomeBG *  gnome_bg_new                (void);
-+void       gnome_bg_free               (GnomeBG               *img);
-+void       gnome_bg_set_placement      (GnomeBG               *img,
-+					GnomeBGPlacement       placement);
-+void       gnome_bg_set_color          (GnomeBG               *img,
-+					GnomeBGColorType       type,
-+					GdkColor              *c1,
-+					GdkColor              *c2);
-+void       gnome_bg_set_uri            (GnomeBG               *img,
-+					const char            *uri);
-+void       gnome_bg_draw               (GnomeBG               *img,
-+					GdkPixbuf             *dest);
-+GdkPixmap *gnome_bg_create_pixmap      (GnomeBG               *img,
-+					GdkWindow             *window,
-+					int                    width,
-+					int                    height,
-+					gboolean               root);
-+gboolean   gnome_bg_get_image_size     (GnomeBG	               *bg,
-+					GnomeThumbnailFactory *factory,
-+					int		       *width,
-+					int		       *height);
-+GdkPixbuf *gnome_bg_create_thumbnail   (GnomeBG               *bg,
-+					GnomeThumbnailFactory *factory,
-+					GdkScreen             *screen,
-+					int		       dest_width,
-+					int		       dest_height);
-+gboolean   gnome_bg_is_dark            (GnomeBG               *img);
-+gboolean   gnome_bg_changes_with_size  (GnomeBG               *img);
-+
-+
-+/* Set a pixmap as root - not a GnomeBG method */
-+void       gnome_bg_set_pixmap_as_root (GdkScreen             *screen,
-+					GdkPixmap             *pixmap);
-+
-+
-+#ifdef __cplusplus
-+}
-+#endif
-+
-+#endif


Index: gnome-desktop.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-desktop/F-7/gnome-desktop.spec,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- gnome-desktop.spec	4 Oct 2007 14:52:54 -0000	1.84
+++ gnome-desktop.spec	13 Nov 2007 22:07:27 -0000	1.85
@@ -12,7 +12,7 @@
 Summary: Package containing code shared among gnome-panel, gnome-session, nautilus, etc
 Name: gnome-desktop
 Version: 2.18.3
-Release: 3%{?dist}
+Release: 4%{?dist}
 URL: http://www.gnome.org
 Source0: http://download.gnome.org/sources/gnome-desktop/2.18/%{name}-%{version}.tar.bz2
 
@@ -129,6 +129,9 @@
 %{_datadir}/gtk-doc/html/gnome-desktop/
 
 %changelog
+* Tue Nov 13 2007 Soren Sandmann <sandmann at redhat.com> - 2.18.3-4
+- Fix crash in slideshow_free() bug 344461.
+
 * Mon Jul  2 2007 Matthias Clasen <mclasen at redhat.com> - 2.18.3-1
 - Update to 2.18.3
 




More information about the fedora-extras-commits mailing list