|
|
@ -1218,13 +1218,13 @@ void drawScrollBarSlider(GdkWindow* window, GtkStyle* style, GtkStateType state,
|
|
|
|
|
|
|
|
|
|
|
|
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
|
|
|
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bitBlt(TQT_TQPAINTDEVICE(&pixmap), 1, 0, TQT_TQPAINTDEVICE(&leftPix), leftRect.width(), 0, 6, h, TQt::CopyROP, true);
|
|
|
|
bitBlt(&pixmap, 1, 0, &leftPix, leftRect.width(), 0, 6, h, TQt::CopyROP, true);
|
|
|
|
bitBlt(TQT_TQPAINTDEVICE(&pixmap), w-7, 0, TQT_TQPAINTDEVICE(&rightPix), 0, 0, 7, h, TQt::CopyROP, true);
|
|
|
|
bitBlt(&pixmap, w-7, 0, &rightPix, 0, 0, 7, h, TQt::CopyROP, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bitBlt(TQT_TQPAINTDEVICE(&pixmap), 0, 1, TQT_TQPAINTDEVICE(&leftPix), 0, leftRect.height(), w, 6, TQt::CopyROP, true);
|
|
|
|
bitBlt(&pixmap, 0, 1, &leftPix, 0, leftRect.height(), w, 6, TQt::CopyROP, true);
|
|
|
|
bitBlt(TQT_TQPAINTDEVICE(&pixmap), 0, h-7, TQT_TQPAINTDEVICE(&rightPix), 0, 0, w, 7, TQt::CopyROP, true);
|
|
|
|
bitBlt(&pixmap, 0, h-7, &rightPix, 0, 0, w, 7, TQt::CopyROP, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2063,7 +2063,7 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
|
|
|
|
if (!forceRecreate && cacheFile.exists())
|
|
|
|
if (!forceRecreate && cacheFile.exists())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cacheFile.open(IO_ReadOnly);
|
|
|
|
cacheFile.open(IO_ReadOnly);
|
|
|
|
stream.setDevice(TQT_TQIODEVICE(&cacheFile));
|
|
|
|
stream.setDevice(&cacheFile);
|
|
|
|
|
|
|
|
|
|
|
|
if (stream.readLine() == "# " + iconTheme + ", " + tqApp->style().name() + ", " + RC_CACHE_VERSION)
|
|
|
|
if (stream.readLine() == "# " + iconTheme + ", " + tqApp->style().name() + ", " + RC_CACHE_VERSION)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -2078,7 +2078,7 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cacheFile.open(IO_WriteOnly | IO_Truncate);
|
|
|
|
cacheFile.open(IO_WriteOnly | IO_Truncate);
|
|
|
|
stream.setDevice(TQT_TQIODEVICE(&cacheFile));
|
|
|
|
stream.setDevice(&cacheFile);
|
|
|
|
|
|
|
|
|
|
|
|
stream << "# " << iconTheme << ", " << tqApp->style().name() << ", " << RC_CACHE_VERSION << "\n\n";
|
|
|
|
stream << "# " << iconTheme << ", " << tqApp->style().name() << ", " << RC_CACHE_VERSION << "\n\n";
|
|
|
|
stream << "# This file was generated by the Gtk Qt Theme Engine\n";
|
|
|
|
stream << "# This file was generated by the Gtk Qt Theme Engine\n";
|
|
|
|