rpms/qt/devel qt-x11-opensource-src-4.4.0-qgtkstyle.patch, NONE, 1.1 qt.spec, 1.182, 1.183

Kevin Kofler (kkofler) fedora-extras-commits at redhat.com
Tue May 27 20:43:04 UTC 2008


Author: kkofler

Update of /cvs/pkgs/rpms/qt/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32012/devel

Modified Files:
	qt.spec 
Added Files:
	qt-x11-opensource-src-4.4.0-qgtkstyle.patch 
Log Message:
* Tue May 27 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.4.0-5
- under GNOME, default to QGtkStyle if available

qt-x11-opensource-src-4.4.0-qgtkstyle.patch:

--- NEW FILE qt-x11-opensource-src-4.4.0-qgtkstyle.patch ---
diff -ur qt-x11-opensource-src-4.4.0/src/gui/kernel/qapplication_x11.cpp qt-x11-opensource-src-4.4.0-qgtkstyle/src/gui/kernel/qapplication_x11.cpp
--- qt-x11-opensource-src-4.4.0/src/gui/kernel/qapplication_x11.cpp	2008-04-28 15:11:18.000000000 +0200
+++ qt-x11-opensource-src-4.4.0-qgtkstyle/src/gui/kernel/qapplication_x11.cpp	2008-05-27 05:43:57.000000000 +0200
@@ -2262,9 +2262,11 @@
                 QApplicationPrivate::app_style = QStyleFactory::create(QLatin1String("windows"));
             break;
         case DE_GNOME:
-            if (X11->use_xrender)
-                QApplicationPrivate::app_style = QStyleFactory::create(QLatin1String("cleanlooks"));
-            else
+            if (X11->use_xrender) {
+                QApplicationPrivate::app_style = QStyleFactory::create(QLatin1String("gtk"));
+                if (!QApplicationPrivate::app_style)
+                    QApplicationPrivate::app_style = QStyleFactory::create(QLatin1String("cleanlooks"));
+            } else
                 QApplicationPrivate::app_style = QStyleFactory::create(QLatin1String("windows"));
             break;
         case DE_CDE:


Index: qt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qt/devel/qt.spec,v
retrieving revision 1.182
retrieving revision 1.183
diff -u -r1.182 -r1.183
--- qt.spec	19 May 2008 13:54:51 -0000	1.182
+++ qt.spec	27 May 2008 20:42:17 -0000	1.183
@@ -11,7 +11,7 @@
 Name:    qt4
 %endif
 Version: 4.4.0
-Release: 4%{?dist}
+Release: 5%{?dist}
 
 # GPLv2 exceptions(see GPL_EXCEPTIONS*.txt)
 License: GPLv3 or GPLv2 with exceptions or QPL
@@ -37,6 +37,9 @@
 Patch5: qt-all-opensource-src-4.4.0-rc1-as_IN-437440.patch
 # kill hardcoded font substitutions (#447298)
 Patch8: qt-x11-opensource-src-4.3.4-no-hardcoded-font-aliases.patch
+# under GNOME, default to QGtkStyle if available
+# (otherwise fall back to QCleanlooksStyle)
+Patch9: qt-x11-opensource-src-4.4.0-qgtkstyle.patch
 
 ## qt-copy patches
 %define qt_copy 20080516
@@ -312,6 +315,7 @@
 %patch2 -p1
 %patch5 -p1 -b .bz#437440-as_IN-437440
 %patch8 -p1 -b .font-aliases
+%patch9 -p1 -b .qgtkstyle
 
 # drop -fexceptions from $RPM_OPT_FLAGS
 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`
@@ -787,6 +791,9 @@
 
 
 %changelog
+* Tue May 27 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.4.0-5
+- under GNOME, default to QGtkStyle if available
+
 * Mon May 19 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.4.0-4
 - don't hardcode incorrect font substitutions (#447298)
 




More information about the fedora-extras-commits mailing list