Репозитории ALT
5.1: | 3.5.10-alt20.M51.2 |
4.1: | 3.5.10-alt16.M41.1 |
4.0: | 3.5.9-alt1.M40.1 |
3.0: | 3.4.1-alt12 |
+updates: | 3.4.1-alt12.1.M30 |
+backports: | 3.5.6-alt7.0.M30 |
Группа :: Графические оболочки/KDE
Пакет: kdebase
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: kdebase-3.5.7-alt-ksplashsimple-colors.patch
Скачать
Скачать
--- kdebase-3.5.7/ksplashml/themeengine/simple/Makefile.am~ 2005-09-10 12:25:50 +0400
+++ kdebase-3.5.7/ksplashml/themeengine/simple/Makefile.am 2007-08-16 13:26:07 +0400
@@ -4,4 +4,4 @@ INCLUDES = $(all_includes)
bin_PROGRAMS = ksplashsimple
ksplashsimple_SOURCES = main.cpp
ksplashsimple_LDFLAGS = $(all_libraries) $(KDE_RPATH)
-ksplashsimple_LDADD = $(LIB_XINERAMA) $(LIB_X11)
+ksplashsimple_LDADD = $(LIB_XINERAMA) $(LIB_X11) $(LIB_KDECORE)
--- kdebase-3.5.7/ksplashml/themeengine/simple/main.cpp~ 2006-10-01 21:32:04 +0400
+++ kdebase-3.5.7/ksplashml/themeengine/simple/main.cpp 2007-08-15 18:03:17 +0400
@@ -10,6 +10,9 @@
#include <config.h>
+#include <kapplication.h>
+#include <kcmdlineargs.h>
+
#include <X11/Xlib.h>
#ifdef HAVE_XINERAMA
extern "C" { // for older XFree86 versions
@@ -45,6 +48,14 @@ int main( int argc, char* argv[])
if( argc == 2 && strcmp( argv[ 1 ], "--test" ) == 0 )
test = true;
int sx, sy, sw, sh;
+ unsigned long kfg, kbg;
+ {
+ KCmdLineArgs::init(argc, argv, "ksplashml-simple", "", "");
+ KApplication::disableAutoDcopRegistration();
+ KApplication app;
+ kfg = KApplication::palette().active().highlight().rgb();
+ kbg = KApplication::palette().active().highlightedText().rgb();
+ }
#ifdef HAVE_XINERAMA
// Xinerama code from Qt
XineramaScreenInfo *xinerama_screeninfo = 0;
@@ -78,10 +89,10 @@ int main( int argc, char* argv[])
0, CopyFromParent, CopyFromParent, CopyFromParent, CWOverrideRedirect, &attrs );
Pixmap pix = XCreatePixmap( dpy, DefaultRootWindow( dpy ), w, h, DefaultDepth( dpy, 0 ));
XGCValues values;
- values.foreground = WhitePixel( dpy, 0 );
+ values.foreground = kbg;
GC gc = XCreateGC( dpy, pix, GCForeground, &values );
XFillRectangle( dpy, pix, gc, 0, 0, w, h );
- values.foreground = BlackPixel( dpy, 0 );
+ values.foreground = kfg;
XChangeGC( dpy, gc, GCForeground, &values );
// XFillRectangle( dpy, pix, gc, 0, 0, w, frame );
// XFillRectangle( dpy, pix, gc, 0, h - frame, w, frame );