rpms/gtk2-engines/devel gtk-engines-2.7.4-clone.patch, NONE, 1.1 gtk2-engines.spec, 1.37, 1.38

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Apr 17 21:24:41 UTC 2006


Author: sandmann

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

Modified Files:
	gtk2-engines.spec 
Added Files:
	gtk-engines-2.7.4-clone.patch 
Log Message:
* Mon Apr 17 2006 Soren Sandmann <sandmann at redhat.com> - 2.7.4-4
- Add missing clone method in the Clearlooks engine



gtk-engines-2.7.4-clone.patch:
 clearlooks_style.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+)

--- NEW FILE gtk-engines-2.7.4-clone.patch ---
--- gtk-engines-2.7.4/engines/clearlooks/src/clearlooks_style.c.clone	2006-04-17 17:13:09.000000000 -0400
+++ gtk-engines-2.7.4/engines/clearlooks/src/clearlooks_style.c	2006-04-17 17:14:44.000000000 -0400
@@ -1482,6 +1482,25 @@
 static void
 clearlooks_style_init (ClearlooksStyle * style)
 {
+
+}
+
+static GtkStyle *
+clearlooks_style_clone (GtkStyle *style)
+{
+	ClearlooksStyle *original = CLEARLOOKS_STYLE (style);
+	ClearlooksStyle *clone = g_object_new (G_OBJECT_TYPE (style), NULL);
+
+	clone->colors = original->colors;
+	clone->progressbarstyle = original->progressbarstyle;
+	clone->menubarstyle = original->menubarstyle;
+	clone->menuitemstyle = original->menuitemstyle;
+	clone->listviewitemstyle = original->listviewitemstyle;
+	clone->scrollbar_color = original->scrollbar_color;
+	clone->has_scrollbar_color = original->has_scrollbar_color;
+	clone->animation = original->animation;
+	
+	return GTK_STYLE (clone);
 }
 
 static void
@@ -1493,6 +1512,7 @@
 
 	style_class->unrealize        = clearlooks_style_unrealize;
 	style_class->init_from_rc     = clearlooks_style_init_from_rc;
+	style_class->clone	      = clearlooks_style_clone;
 	style_class->draw_handle      = draw_handle;
 	style_class->draw_slider      = draw_slider;
 	style_class->draw_shadow_gap  = draw_shadow_gap;


Index: gtk2-engines.spec
===================================================================
RCS file: /cvs/dist/rpms/gtk2-engines/devel/gtk2-engines.spec,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- gtk2-engines.spec	27 Feb 2006 02:58:18 -0000	1.37
+++ gtk2-engines.spec	17 Apr 2006 21:24:29 -0000	1.38
@@ -1,7 +1,7 @@
 Summary:        Theme engines for GTK+ 2.0
 Name:           gtk2-engines
 Version:        2.7.4
-Release:	3
+Release:	4
 License:        GPL
 Group:          System Environment/Libraries
 Source:         gtk-engines-%{version}.tar.bz2
@@ -9,6 +9,8 @@
 Patch0:		gtk-engines-2.7.4-fixes.patch
 # fix some memory leaks in the Clearlooks engine
 Patch1:		gtk-engines-2.7.4-leaks.patch
+# add missing clone method in clearlooks engine
+Patch2:		gtk-engines-2.7.4-clone.patch
 
 Requires:       gtk2 >= 2.2.0
 Conflicts:  	gnome-themes < 2.9.0
@@ -29,6 +31,7 @@
 %setup -q -n gtk-engines-%{version}
 %patch0 -p1 -b .fixes
 %patch1 -p1 -b .leaks
+%patch2 -p1 -b .clone
 
 %build
 %configure
@@ -66,6 +69,9 @@
 %{_datadir}/themes
 
 %changelog
+* Mon Apr 17 2006 Soren Sandmann <sandmann at redhat.com> - 2.7.4-4
+- Add missing clone method in the Clearlooks engine
+
 * Sun Feb 26 2006 Matthias Clasen <mclasen at redhat.com> - 2.7.4-3
 - Fix memory leaks in the Clearlooks engine
 




More information about the fedora-cvs-commits mailing list