rpms/gtk-engines/devel gtk-engines-0.12-handles.patch, NONE, 1.1 gtk-engines.spec, 1.17, 1.18

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Jan 10 21:49:16 UTC 2006


Author: rstrode

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

Modified Files:
	gtk-engines.spec 
Added Files:
	gtk-engines-0.12-handles.patch 
Log Message:
- fix gnome-panel and f-spot handle rendering


gtk-engines-0.12-handles.patch:
 clearlooks_style.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

--- NEW FILE gtk-engines-0.12-handles.patch ---
--- gtk-engines-0.12/src/clearlooks_style.c      5 Jan 2006 22:46:55 -0000       1.44
+++ gtk-engines-0.12/src/clearlooks_style.c      10 Jan 2006 21:37:59 -0000
@@ -269,7 +269,12 @@ draw_handle (DRAW_ARGS, GtkOrientation o
 
                clearlooks_set_widget_parameters (widget, style, state_type, &params);
                handle.type = CL_HANDLE_TOOLBAR;
-               handle.horizontal = FALSE;
+
+                /* we ignore the given orientation and figure it out from heuristics
+                 * if we aren't drawing a splitter, because some applications
+                 * pass the wrong orientation
+                 */
+                handle.horizontal = width > height;
 
                if (GTK_IS_TOOLBAR (widget) && shadow_type != GTK_SHADOW_NONE)
                {
@@ -301,7 +306,12 @@ draw_handle (DRAW_ARGS, GtkOrientation o
 
                clearlooks_set_widget_parameters (widget, style, state_type, &params);
                handle.type = CL_HANDLE_TOOLBAR;
-               handle.horizontal = FALSE;
+
+                /* we ignore the given orientation and figure it out from heuristics
+                 * if we aren't drawing a splitter, because some applications
+                 * pass the wrong orientation
+                 */
+                handle.horizontal = width > height;
 
                if (GTK_IS_TOOLBAR (widget) && shadow_type != GTK_SHADOW_NONE)
                {




Index: gtk-engines.spec
===================================================================
RCS file: /cvs/dist/rpms/gtk-engines/devel/gtk-engines.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- gtk-engines.spec	9 Dec 2005 22:40:50 -0000	1.17
+++ gtk-engines.spec	10 Jan 2006 21:49:12 -0000	1.18
@@ -3,7 +3,7 @@
 Summary: Theme engines for GTK+.
 Name: gtk-engines
 Version: 0.12
-Release: 7.1
+Release: 8
 Epoch: 1
 License: GPL
 Group: System Environment/Libraries
@@ -14,6 +14,7 @@
 # Fixes pixmap resource leak
 Patch1: gtk-engines-0.11-memleak.patch
 Patch2: gtk-engines-0.12-static.patch
+Patch3: gtk-engines-0.12-handles.patch
 
 # Some extra themes from gtk.themes.org
 Source4: Basic.tar.gz
@@ -51,6 +52,7 @@
 %setup -q -a 2 -a 3 -a 4 -a 5 -a 6 -a 15
 %patch1 -p1 -b .memleak
 %patch2 -p1 -b .static
+%patch3 -p1 -b .handles
 
 %build
 rm acinclude.m4
@@ -127,6 +129,9 @@
 %{_datadir}/themes/*
 
 %changelog
+* Tue Jan 10 2005 Ray Strode <rstrode at redhat.com> 1:0.12-8
+- fix gnome-panel and f-spot handle rendering
+
 * Fri Dec 09 2005 Jesse Keating <jkeating at redhat.com>
 - rebuilt
 




More information about the fedora-cvs-commits mailing list