rpms/kdebase-workspace/F-9 kdebase-workspace-4.0.3-plasma-default-wallpaper-config.patch, NONE, 1.1 kdebase-workspace.spec, 1.75, 1.76

Lukas Tinkl (ltinkl) fedora-extras-commits at redhat.com
Mon Apr 28 15:46:31 UTC 2008


Author: ltinkl

Update of /cvs/extras/rpms/kdebase-workspace/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6437

Modified Files:
	kdebase-workspace.spec 
Added Files:
	kdebase-workspace-4.0.3-plasma-default-wallpaper-config.patch 
Log Message:
#444141: Initial wallpaper chooser has "EOS" preselected but wallpaper is "Fedora Waves"


kdebase-workspace-4.0.3-plasma-default-wallpaper-config.patch:

--- NEW FILE kdebase-workspace-4.0.3-plasma-default-wallpaper-config.patch ---
--- plasma/containments/desktop/backgrounddialog.cpp	2008/04/27 10:39:39	801650
+++ plasma/containments/desktop/backgrounddialog.cpp	2008/04/27 10:44:30	801651
@@ -614,12 +614,18 @@
     }
     m_selected = config.readEntry("selected", QStringList());
     m_model->reload(m_selected);
+
+    KSharedConfigPtr defaultconfig = KSharedConfig::openConfig("plasmarc");
+    KConfigGroup group = KConfigGroup(defaultconfig, "Defaults");
+    QString defaultPath = group.readEntry("wallpaper", "EOS/contents/images/1920x1200.jpg");
+
     QString currentPath = config.readEntry("wallpaper",
-            KStandardDirs::locate("wallpaper", "EOS/contents/images/1920x1200.jpg"));
+            KStandardDirs::locate("wallpaper", defaultPath));
 
     kDebug() << "Default would be" << KStandardDirs::locate("wallpaper", "EOS/contents/images/1920x1200.jpg");
     kDebug() << "but we're loading" << currentPath << "instead";
 
+    m_model->addBackground(currentPath);
     int index = m_model->indexOf(currentPath);
     if (index != -1) {
         m_view->setCurrentIndex(index);


Index: kdebase-workspace.spec
===================================================================
RCS file: /cvs/extras/rpms/kdebase-workspace/F-9/kdebase-workspace.spec,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- kdebase-workspace.spec	27 Apr 2008 03:52:21 -0000	1.75
+++ kdebase-workspace.spec	28 Apr 2008 15:45:52 -0000	1.76
@@ -6,7 +6,7 @@
 Name: kdebase-workspace
 Version: 4.0.3
 
-Release: 18%{?dist}
+Release: 19%{?dist}
 Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/kdebase-workspace-%{version}.tar.bz2
 License: GPLv2
 Group: User Interface/Desktops
@@ -48,6 +48,9 @@
 # http://websvn.kde.org/?view=rev&revision=794496
 # don't show "Zoom Out" toolbox action (not working in 4.0)
 Patch202: kdebase-workspace-4.0.3-rh#443610.patch
+# #444141: Initial wallpaper chooser has "EOS" preselected but wallpaper is "Fedora Waves"
+# http://websvn.kde.org/?view=rev&revision=801651
+Patch203: kdebase-workspace-4.0.3-plasma-default-wallpaper-config.patch
 
 # upgrade path for former kde-redhat'ers
 Obsoletes: kdebase-kdm < 6:%{version}-%{release}
@@ -151,6 +154,7 @@
 %patch200 -p0 -b .plasma-default-wallpaper
 %patch201 -p1 -b .kde#158301
 %patch202 -p1 -b .rh#443610
+%patch203 -p0 -b .plasma-default-wallpaper-config
 
 %build
 
@@ -269,6 +273,9 @@
 
 
 %changelog
+* Mon Apr 28 2008 Lukáš Tinkl <ltinkl at redhat.com> 4.0.3-19
+- #444141: Initial wallpaper chooser has "EOS" preselected but wallpaper is "Fedora Waves"
+
 * Sun Apr 27 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.0.3-18
 - don't show "Zoom Out" toolbox action (#443610, patch from openSUSE branch)
 




More information about the fedora-extras-commits mailing list