Репозитории ALT
5.1: | 3.5.10-alt1 |
4.1: | 3.5.10-alt0.M41.1 |
4.0: | 3.5.9-alt0.M40.1 |
3.0: | 3.4.1-alt2 |
+backports: | 3.5.6-alt0.1.M30 |
Группа :: Графические оболочки/KDE
Пакет: kdegames
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: kpat-3.5.0-fix-find-wallpaper.patch
Скачать
Скачать
--- kdegames-3.5.0/kpat/pwidget.cpp~ 2005-09-10 12:18:32 +0400
+++ kdegames-3.5.0/kpat/pwidget.cpp 2005-12-09 19:49:21 +0300
@@ -102,6 +102,7 @@ pWidget::pWidget()
}
games->setItems(list);
+ KGlobal::dirs()->addResourceType("wallpaper", "share/design-current/backgrounds/");
KGlobal::dirs()->addResourceType("wallpaper", KStandardDirs::kde_default("data") + "kpat/backgrounds/");
KGlobal::dirs()->addResourceType("wallpaper", KStandardDirs::kde_default("data") + "ksnake/backgrounds/");
wallpapers = new KSelectAction(i18n("&Change Background"), 0, this,
@@ -125,7 +126,7 @@ pWidget::pWidget()
}
wallpapers->setItems(list2);
- wallpapers->setCurrentItem(list2.findIndex("No-Ones-Laughing-3"));
+ wallpapers->setCurrentItem(list2.findIndex("default"));
changeWallpaper();
@@ -151,7 +152,7 @@ pWidget::pWidget()
QString bgpath = config->readPathEntry("Background");
kdDebug(11111) << "bgpath '" << bgpath << "'" << endl;
if (bgpath.isEmpty())
- bgpath = locate("wallpaper", "No-Ones-Laughing-3.jpg");
+ bgpath = locate("wallpaper", "default.png");
background = QPixmap(bgpath);
bool animate = config->readBoolEntry( "Animation", true);