@ -43,7 +43,7 @@
# define RC_CACHE_VERSION TQString("1")
# define RC_CACHE_VERSION TQString("1")
bool gtk T QtEnable = false ;
bool gtk QtEnable = false ;
bool mozillaFix = false ;
bool mozillaFix = false ;
bool tqAppOwner = false ;
bool tqAppOwner = false ;
@ -86,14 +86,14 @@ int isDomino;
int isPolyester ;
int isPolyester ;
int eclipseFix ;
int eclipseFix ;
int openOfficeFix ;
int openOfficeFix ;
int gtk T QtDebug;
int gtk QtDebug;
Atom kipcCommAtom ;
Atom kipcCommAtom ;
Atom desktopWindowAtom ;
Atom desktopWindowAtom ;
void setFillPixmap ( GdkPixbuf * buf )
void setFillPixmap ( GdkPixbuf * buf )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
// This code isn't very robust. It doesn't handle depths other than 24 bits.
// This code isn't very robust. It doesn't handle depths other than 24 bits.
@ -205,7 +205,7 @@ void createTQApp()
}
}
if ( ret = = - 1 )
if ( ret = = - 1 )
{
{
printf ( " Gtk- T Qt theme engine warning:\n " ) ;
printf ( " Gtk- Qt theme engine warning:\n " ) ;
printf ( msg ) ;
printf ( msg ) ;
printf ( " This may cause problems for the GNOME window manager \n " ) ;
printf ( " This may cause problems for the GNOME window manager \n " ) ;
}
}
@ -289,7 +289,7 @@ void createTQApp()
if ( ret = = - 1 )
if ( ret = = - 1 )
{
{
printf ( " Gtk- T Qt theme engine warning:\n " ) ;
printf ( " Gtk- Qt theme engine warning:\n " ) ;
printf ( msg ) ;
printf ( msg ) ;
printf ( " This may cause problems for the GNOME window manager \n " ) ;
printf ( " This may cause problems for the GNOME window manager \n " ) ;
}
}
@ -300,7 +300,7 @@ void createTQApp()
int fd = open ( cmdlinePath , O_RDONLY ) ;
int fd = open ( cmdlinePath , O_RDONLY ) ;
if ( fd = = - 1 )
if ( fd = = - 1 )
{
{
printf ( " Gtk- T Qt theme engine warning:\n " ) ;
printf ( " Gtk- Qt theme engine warning:\n " ) ;
printf ( " Could not open %s \n " , ( const char * ) cmdlinePath ) ;
printf ( " Could not open %s \n " , ( const char * ) cmdlinePath ) ;
printf ( " This may cause problems for the GNOME window manager \n " ) ;
printf ( " This may cause problems for the GNOME window manager \n " ) ;
}
}
@ -330,15 +330,15 @@ void createTQApp()
eclipseFix = cmdLine . tqcontains ( " eclipse " ) ;
eclipseFix = cmdLine . tqcontains ( " eclipse " ) ;
gtk T QtDebug = ( getenv ( " GTK_TQT_ENGINE_DEBUG " ) ! = NULL ) ? 1 : 0 ;
gtk QtDebug = ( getenv ( " GTK_TQT_ENGINE_DEBUG " ) ! = NULL ) ? 1 : 0 ;
if ( gtk T QtDebug)
if ( gtk QtDebug)
printf ( " createTQApp() \n " ) ;
printf ( " createTQApp() \n " ) ;
char * sessionEnv = getenv ( " SESSION_MANAGER " ) ;
char * sessionEnv = getenv ( " SESSION_MANAGER " ) ;
if ( TQString ( sessionEnv ) . endsWith ( TQString : : number ( getpid ( ) ) ) | | cmdLine . tqcontains ( " nspluginviewer " ) | | cmdLine . tqcontains ( " gnome-wm " ) | | cmdLine . tqcontains ( " metacity " ) | | cmdLine . tqcontains ( " xfwm4 " ) | | ( getenv ( " GTK_TQT_ENGINE_DISABLE " ) ! = NULL ) )
if ( TQString ( sessionEnv ) . endsWith ( TQString : : number ( getpid ( ) ) ) | | cmdLine . tqcontains ( " nspluginviewer " ) | | cmdLine . tqcontains ( " gnome-wm " ) | | cmdLine . tqcontains ( " metacity " ) | | cmdLine . tqcontains ( " xfwm4 " ) | | ( getenv ( " GTK_TQT_ENGINE_DISABLE " ) ! = NULL ) )
{
{
printf ( " Not initializing the Gtk- T Qt theme engine\n " ) ;
printf ( " Not initializing the Gtk- Qt theme engine\n " ) ;
}
}
else
else
{
{
@ -372,13 +372,13 @@ void createTQApp()
XSetErrorHandler ( original_x_errhandler ) ;
XSetErrorHandler ( original_x_errhandler ) ;
XSetIOErrorHandler ( original_xio_errhandler ) ;
XSetIOErrorHandler ( original_xio_errhandler ) ;
gtk T QtEnable = true ;
gtk QtEnable = true ;
}
}
free ( argv [ 0 ] ) ;
free ( argv [ 0 ] ) ;
free ( argv ) ;
free ( argv ) ;
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
isBaghira = ( TQString ( tqApp - > tqstyle ( ) . name ( ) ) . lower ( ) = = " baghira " ) ;
isBaghira = ( TQString ( tqApp - > tqstyle ( ) . name ( ) ) . lower ( ) = = " baghira " ) ;
@ -436,7 +436,7 @@ void createTQApp()
void destroyTQApp ( )
void destroyTQApp ( )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
delete meepWidget ;
delete meepWidget ;
delete meepWidgetP ;
delete meepWidgetP ;
@ -463,7 +463,7 @@ GdkFilterReturn gdkEventFilter(GdkXEvent *xevent, GdkEvent *gevent, gpointer dat
if ( event - > xclient . data . l [ 0 ] ! = 2 )
if ( event - > xclient . data . l [ 0 ] ! = 2 )
return GDK_FILTER_REMOVE ;
return GDK_FILTER_REMOVE ;
if ( gtk T QtDebug)
if ( gtk QtDebug)
printf ( " StyleChanged IPC message \n " ) ;
printf ( " StyleChanged IPC message \n " ) ;
// Find out the new widget style
// Find out the new widget style
@ -619,7 +619,7 @@ TQColor gdkColorToTQColor(GdkColor* c)
void drawButton ( GdkWindow * window , GtkStyle * style , GtkStateType state , int defaultButton , int x , int y , int w , int h )
void drawButton ( GdkWindow * window , GtkStyle * style , GtkStateType state , int defaultButton , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -654,7 +654,7 @@ void drawButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int defa
// Thanks Peter Hartshorn <peter@dimtech.com.au>
// Thanks Peter Hartshorn <peter@dimtech.com.au>
void drawToolbar ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawToolbar ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
int w1 , h1 ;
int w1 , h1 ;
@ -709,7 +709,7 @@ void drawToolbar(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
void drawMenubar ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawMenubar ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
int w1 , h1 ;
int w1 , h1 ;
@ -758,7 +758,7 @@ void drawMenubar(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
void drawTab ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawTab ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -789,7 +789,7 @@ void drawTab(GdkWindow* window, GtkStyle* style, GtkStateType state, int x, int
void drawVLine ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int ySource , int yDest )
void drawVLine ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int ySource , int yDest )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
int width = style - > xthickness ;
int width = style - > xthickness ;
@ -816,7 +816,7 @@ void drawVLine(GdkWindow* window, GtkStyle* style, GtkStateType state, int x, in
void drawHLine ( GdkWindow * window , GtkStyle * style , GtkStateType state , int y , int xSource , int xDest )
void drawHLine ( GdkWindow * window , GtkStyle * style , GtkStateType state , int y , int xSource , int xDest )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
int width = abs ( xSource - xDest ) ;
int width = abs ( xSource - xDest ) ;
@ -841,7 +841,7 @@ void drawHLine(GdkWindow* window, GtkStyle* style, GtkStateType state, int y, in
void drawLineEdit ( GdkWindow * window , GtkStyle * style , GtkStateType state , int hasFocus , int x , int y , int w , int h )
void drawLineEdit ( GdkWindow * window , GtkStyle * style , GtkStateType state , int hasFocus , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -864,7 +864,7 @@ void drawLineEdit(GdkWindow* window, GtkStyle* style, GtkStateType state, int ha
void drawFrame ( GdkWindow * window , GtkStyle * style , GtkStateType state , GtkShadowType shadow_type , int x , int y , int w , int h )
void drawFrame ( GdkWindow * window , GtkStyle * style , GtkStateType state , GtkShadowType shadow_type , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) ) // Caused crash in gaim file transfers window
if ( ( w < 1 ) | | ( h < 1 ) ) // Caused crash in gaim file transfers window
@ -891,7 +891,7 @@ void drawFrame(GdkWindow* window, GtkStyle* style, GtkStateType state, GtkShadow
void drawComboBox ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawComboBox ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -919,7 +919,7 @@ void drawComboBox(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
void drawCheckBox ( GdkWindow * window , GtkStyle * style , GtkStateType state , int checked , int x , int y , int w , int h )
void drawCheckBox ( GdkWindow * window , GtkStyle * style , GtkStateType state , int checked , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
int realH = tqApp - > tqstyle ( ) . tqpixelMetric ( TQStyle : : PM_IndicatorHeight ) ;
int realH = tqApp - > tqstyle ( ) . tqpixelMetric ( TQStyle : : PM_IndicatorHeight ) ;
@ -938,7 +938,7 @@ void drawCheckBox(GdkWindow* window, GtkStyle* style, GtkStateType state, int ch
painter . fillRect ( 0 , 0 , realW , realH , tqApp - > tqpalette ( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
painter . fillRect ( 0 , 0 , realW , realH , tqApp - > tqpalette ( ) . active ( ) . brush ( TQColorGroup : : Background ) ) ;
tqApp - > tqstyle ( ) . tqdrawControl ( TQStyle : : CE_CheckBox , & painter , & checkbox , TQRect ( 0 , 0 , realW , realH ) , tqApp - > tqpalette ( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tqdrawControl ( TQStyle : : CE_CheckBox , & painter , & checkbox , TQRect ( 0 , 0 , realW , realH ) , tqApp - > tqpalette ( ) . active ( ) , sflags ) ;
// T Qt checkboxes are usually bigger than GTK wants.
// Qt checkboxes are usually bigger than GTK wants.
// We cheat, and draw them over the expected area.
// We cheat, and draw them over the expected area.
int xOffset = ( realW - w ) / 2 ;
int xOffset = ( realW - w ) / 2 ;
int yOffset = ( realH - h ) / 2 ;
int yOffset = ( realH - h ) / 2 ;
@ -950,7 +950,7 @@ void drawCheckBox(GdkWindow* window, GtkStyle* style, GtkStateType state, int ch
void drawMenuCheck ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawMenuCheck ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
TQCheckBox checkbox ( 0 ) ;
TQCheckBox checkbox ( 0 ) ;
@ -985,7 +985,7 @@ void drawMenuCheck(GdkWindow* window, GtkStyle* style, GtkStateType state, int x
void drawRadioButton ( GdkWindow * window , GtkStyle * style , GtkStateType state , int checked , int x , int y , int w , int h )
void drawRadioButton ( GdkWindow * window , GtkStyle * style , GtkStateType state , int checked , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
int realH = tqApp - > tqstyle ( ) . tqpixelMetric ( TQStyle : : PM_IndicatorHeight ) ;
int realH = tqApp - > tqstyle ( ) . tqpixelMetric ( TQStyle : : PM_IndicatorHeight ) ;
@ -1010,7 +1010,7 @@ void drawRadioButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int
tqApp - > tqstyle ( ) . tqdrawControl ( TQStyle : : CE_RadioButton , & painter , & radio , TQRect ( 0 , 0 , realH , realW ) , tqApp - > tqpalette ( ) . active ( ) , sflags ) ;
tqApp - > tqstyle ( ) . tqdrawControl ( TQStyle : : CE_RadioButton , & painter , & radio , TQRect ( 0 , 0 , realH , realW ) , tqApp - > tqpalette ( ) . active ( ) , sflags ) ;
// T Qt checkboxes are usually bigger than GTK wants.
// Qt checkboxes are usually bigger than GTK wants.
// We cheat, and draw them over the expected area.
// We cheat, and draw them over the expected area.
int xOffset = ( realW - w ) / 2 ;
int xOffset = ( realW - w ) / 2 ;
int yOffset = ( realH - h ) / 2 ;
int yOffset = ( realH - h ) / 2 ;
@ -1023,7 +1023,7 @@ void drawRadioButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int
void drawScrollBarSlider ( GdkWindow * window , GtkStyle * style , GtkStateType state , int orientation , GtkAdjustment * adj , int x , int y , int w , int h , int offset , int totalExtent )
void drawScrollBarSlider ( GdkWindow * window , GtkStyle * style , GtkStateType state , int orientation , GtkAdjustment * adj , int x , int y , int w , int h , int offset , int totalExtent )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1077,13 +1077,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 , T Qt: : CopyROP , true ) ;
bitBlt ( TQT_TQPAINTDEVICE ( & pixmap ) , 1 , 0 , TQT_TQPAINTDEVICE ( & leftPix ) , leftRect . width ( ) , 0 , 6 , h , Qt: : CopyROP , true ) ;
bitBlt ( TQT_TQPAINTDEVICE ( & pixmap ) , w - 7 , 0 , TQT_TQPAINTDEVICE ( & rightPix ) , 0 , 0 , 7 , h , T Qt: : CopyROP , true ) ;
bitBlt ( TQT_TQPAINTDEVICE ( & pixmap ) , w - 7 , 0 , TQT_TQPAINTDEVICE ( & rightPix ) , 0 , 0 , 7 , h , Qt: : CopyROP , true ) ;
}
}
else
else
{
{
bitBlt ( TQT_TQPAINTDEVICE ( & pixmap ) , 0 , 1 , TQT_TQPAINTDEVICE ( & leftPix ) , 0 , leftRect . height ( ) , w , 6 , T Qt: : CopyROP , true ) ;
bitBlt ( TQT_TQPAINTDEVICE ( & pixmap ) , 0 , 1 , TQT_TQPAINTDEVICE ( & leftPix ) , 0 , leftRect . height ( ) , w , 6 , Qt: : CopyROP , true ) ;
bitBlt ( TQT_TQPAINTDEVICE ( & pixmap ) , 0 , h - 7 , TQT_TQPAINTDEVICE ( & rightPix ) , 0 , 0 , w , 7 , T Qt: : CopyROP , true ) ;
bitBlt ( TQT_TQPAINTDEVICE ( & pixmap ) , 0 , h - 7 , TQT_TQPAINTDEVICE ( & rightPix ) , 0 , 0 , w , 7 , Qt: : CopyROP , true ) ;
}
}
}
}
@ -1104,7 +1104,7 @@ void drawScrollBarSlider(GdkWindow* window, GtkStyle* style, GtkStateType state,
void drawScrollBar ( GdkWindow * window , GtkStyle * style , GtkStateType state , int orientation , GtkAdjustment * adj , int x , int y , int w , int h )
void drawScrollBar ( GdkWindow * window , GtkStyle * style , GtkStateType state , int orientation , GtkAdjustment * adj , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1166,9 +1166,9 @@ void drawScrollBar(GdkWindow* window, GtkStyle* style, GtkStateType state, int o
& painter2 , scrollBar , TQRect ( 0 , 0 , w , h + thumbSize ) ,
& painter2 , scrollBar , TQRect ( 0 , 0 , w , h + thumbSize ) ,
tqApp - > tqpalette ( ) . active ( ) , sflags ) ;
tqApp - > tqpalette ( ) . active ( ) , sflags ) ;
bitBlt ( & pixmap , 0 , 0 , & tmpPixmap , 0 , 0 , w , offset , T Qt: : CopyROP ) ;
bitBlt ( & pixmap , 0 , 0 , & tmpPixmap , 0 , 0 , w , offset , Qt: : CopyROP ) ;
bitBlt ( & pixmap , 0 , offset , & tmpPixmap , 0 , offset + thumbSize ,
bitBlt ( & pixmap , 0 , offset , & tmpPixmap , 0 , offset + thumbSize ,
w , h - offset , T Qt: : CopyROP ) ;
w , h - offset , Qt: : CopyROP ) ;
} else {
} else {
TQRect r ;
TQRect r ;
r = tqApp - > tqstyle ( ) . querySubControlMetrics ( TQStyle : : CC_ScrollBar ,
r = tqApp - > tqstyle ( ) . querySubControlMetrics ( TQStyle : : CC_ScrollBar ,
@ -1191,9 +1191,9 @@ void drawScrollBar(GdkWindow* window, GtkStyle* style, GtkStateType state, int o
& painter2 , scrollBar , TQRect ( 0 , 0 , w + thumbSize , h ) ,
& painter2 , scrollBar , TQRect ( 0 , 0 , w + thumbSize , h ) ,
tqApp - > tqpalette ( ) . active ( ) , sflags ) ;
tqApp - > tqpalette ( ) . active ( ) , sflags ) ;
bitBlt ( & pixmap , 0 , 0 , & tmpPixmap , 0 , 0 , offset , h , T Qt: : CopyROP ) ;
bitBlt ( & pixmap , 0 , 0 , & tmpPixmap , 0 , 0 , offset , h , Qt: : CopyROP ) ;
bitBlt ( & pixmap , offset , 0 , & tmpPixmap , offset + thumbSize , 0 ,
bitBlt ( & pixmap , offset , 0 , & tmpPixmap , offset + thumbSize , 0 ,
w - offset , h , T Qt: : CopyROP ) ;
w - offset , h , Qt: : CopyROP ) ;
}
}
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
@ -1203,7 +1203,7 @@ void drawScrollBar(GdkWindow* window, GtkStyle* style, GtkStateType state, int o
void drawToolButton ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawToolButton ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1242,7 +1242,7 @@ void drawToolButton(GdkWindow* window, GtkStyle* style, GtkStateType state, int
void drawMenuBarItem ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawMenuBarItem ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1264,7 +1264,7 @@ void drawMenuBarItem(GdkWindow* window, GtkStyle* style, GtkStateType state, int
void drawMenuItem ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawMenuItem ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1289,7 +1289,7 @@ void drawMenuItem(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
void drawSplitter ( GdkWindow * window , GtkStyle * style , GtkStateType state , int orientation , int x , int y , int w , int h )
void drawSplitter ( GdkWindow * window , GtkStyle * style , GtkStateType state , int orientation , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1312,7 +1312,7 @@ void drawSplitter(GdkWindow* window, GtkStyle* style, GtkStateType state, int or
void drawTabFrame ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h , GtkPositionType pos )
void drawTabFrame ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h , GtkPositionType pos )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1370,7 +1370,7 @@ void drawTabFrame(GdkWindow* window, GtkStyle* style, GtkStateType state, int x,
void drawMenu ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawMenu ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1408,7 +1408,7 @@ void drawMenu(GdkWindow* window, GtkStyle* style, GtkStateType state, int x, int
void drawProgressChunk ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawProgressChunk ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
// This is only for Mozilla/Firefox
// This is only for Mozilla/Firefox
if ( ! mozillaFix | | ! gtk T QtEnable)
if ( ! mozillaFix | | ! gtk QtEnable)
return ;
return ;
if ( ( w < = 1 ) | | ( h < = 1 ) )
if ( ( w < = 1 ) | | ( h < = 1 ) )
@ -1447,7 +1447,7 @@ void drawProgressChunk(GdkWindow * window, GtkStyle * style, GtkStateType state,
void drawProgressBar ( GdkWindow * window , GtkStyle * style , GtkStateType state , GtkProgressBarOrientation orientation , gfloat percentage , int x , int y , int w , int h )
void drawProgressBar ( GdkWindow * window , GtkStyle * style , GtkStateType state , GtkProgressBarOrientation orientation , gfloat percentage , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < = 1 ) | | ( h < = 1 ) )
if ( ( w < = 1 ) | | ( h < = 1 ) )
@ -1483,7 +1483,7 @@ void drawProgressBar(GdkWindow * window, GtkStyle * style, GtkStateType state, G
void drawSlider ( GdkWindow * window , GtkStyle * style , GtkStateType state , GtkAdjustment * adj , int x , int y , int w , int h , GtkOrientation orientation , int inverted )
void drawSlider ( GdkWindow * window , GtkStyle * style , GtkStateType state , GtkAdjustment * adj , int x , int y , int w , int h , GtkOrientation orientation , int inverted )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
meepSlider - > setBackgroundOrigin ( TQWidget : : ParentOrigin ) ;
meepSlider - > setBackgroundOrigin ( TQWidget : : ParentOrigin ) ;
@ -1508,7 +1508,7 @@ void drawSlider(GdkWindow * window, GtkStyle * style, GtkStateType state, GtkAdj
void drawSpinButton ( GdkWindow * window , GtkStyle * style , GtkStateType state , int direction , int x , int y , int w , int h )
void drawSpinButton ( GdkWindow * window , GtkStyle * style , GtkStateType state , int direction , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1529,7 +1529,7 @@ void drawSpinButton(GdkWindow * window, GtkStyle * style, GtkStateType state, in
void drawListHeader ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawListHeader ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1551,7 +1551,7 @@ void drawListHeader(GdkWindow* window, GtkStyle* style, GtkStateType state, int
void drawListViewItem ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawListViewItem ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1563,7 +1563,7 @@ void drawListViewItem(GdkWindow* window, GtkStyle* style, GtkStateType state, in
/* Get the brush corresponding to highlight color */
/* Get the brush corresponding to highlight color */
TQBrush brush = tqApp - > palette ( ) . brush ( TQPalette : : Active , TQColorGroup : : Highlight ) ;
TQBrush brush = tqApp - > palette ( ) . brush ( TQPalette : : Active , TQColorGroup : : Highlight ) ;
painter . setBrush ( brush ) ;
painter . setBrush ( brush ) ;
painter . setPen ( T Qt: : NoPen ) ;
painter . setPen ( Qt: : NoPen ) ;
painter . drawRect ( 0 , 0 , w , h ) ;
painter . drawRect ( 0 , 0 , w , h ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
GdkPixmap * pix = gdk_pixmap_foreign_new ( pixmap . handle ( ) ) ;
@ -1573,7 +1573,7 @@ void drawListViewItem(GdkWindow* window, GtkStyle* style, GtkStateType state, in
void drawSquareButton ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
void drawSquareButton ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
TQPixmap pixmap ( 20 , 20 ) ;
TQPixmap pixmap ( 20 , 20 ) ;
@ -1600,7 +1600,7 @@ void drawSquareButton(GdkWindow* window, GtkStyle* style, GtkStateType state, in
void initDrawTabNG ( int count )
void initDrawTabNG ( int count )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
delete meepTabBar ;
delete meepTabBar ;
@ -1615,7 +1615,7 @@ void initDrawTabNG(int count)
void drawTabNG ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h , GtkNotebook * notebook )
void drawTabNG ( GdkWindow * window , GtkStyle * style , GtkStateType state , int x , int y , int w , int h , GtkNotebook * notebook )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
GtkPositionType tpos = gtk_notebook_get_tab_pos ( notebook ) ;
GtkPositionType tpos = gtk_notebook_get_tab_pos ( notebook ) ;
@ -1683,7 +1683,7 @@ void drawTabNG(GdkWindow *window, GtkStyle* style, GtkStateType state, int x, in
void drawArrow ( GdkWindow * window , GtkStyle * style , GtkStateType state , GtkArrowType direction , int x , int y , int w , int h )
void drawArrow ( GdkWindow * window , GtkStyle * style , GtkStateType state , GtkArrowType direction , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1724,7 +1724,7 @@ void drawArrow(GdkWindow* window, GtkStyle* style, GtkStateType state, GtkArrowT
void drawFocusRect ( GdkWindow * window , GtkStyle * style , int x , int y , int w , int h )
void drawFocusRect ( GdkWindow * window , GtkStyle * style , int x , int y , int w , int h )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( w < 1 ) | | ( h < 1 ) )
if ( ( w < 1 ) | | ( h < 1 ) )
@ -1866,10 +1866,10 @@ static TQStringList iconInheritsDirs( const TQString& icondir )
void setRcProperties ( GtkRcStyle * rc_style , int forceRecreate )
void setRcProperties ( GtkRcStyle * rc_style , int forceRecreate )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( gtk T QtDebug)
if ( gtk QtDebug)
printf ( " setRcProperties() \n " ) ;
printf ( " setRcProperties() \n " ) ;
gtkRcStyle = rc_style ;
gtkRcStyle = rc_style ;
@ -1938,7 +1938,7 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
stream . setDevice ( TQT_TQIODEVICE ( & cacheFile ) ) ;
stream . setDevice ( TQT_TQIODEVICE ( & cacheFile ) ) ;
stream < < " # " < < iconTheme < < " , " < < tqApp - > tqstyle ( ) . name ( ) < < " , " < < RC_CACHE_VERSION < < " \n \n " ;
stream < < " # " < < iconTheme < < " , " < < tqApp - > tqstyle ( ) . name ( ) < < " , " < < RC_CACHE_VERSION < < " \n \n " ;
stream < < " # This file was generated by the Gtk T Qt Theme Engine\n " ;
stream < < " # This file was generated by the Gtk Qt Theme Engine\n " ;
stream < < " # It will be recreated when you change your KDE icon theme or widget style \n \n " ;
stream < < " # It will be recreated when you change your KDE icon theme or widget style \n \n " ;
TQScrollBar sbar ( NULL ) ;
TQScrollBar sbar ( NULL ) ;
@ -2145,7 +2145,7 @@ void addIconThemeDir(const TQString& theme)
void setMenuBackground ( GtkStyle * style )
void setMenuBackground ( GtkStyle * style )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( menuBackgroundPixmap = = NULL )
if ( menuBackgroundPixmap = = NULL )
@ -2185,10 +2185,10 @@ void setColour(GdkColor* g, TQColor q)
void setColors ( GtkStyle * style )
void setColors ( GtkStyle * style )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( gtk T QtDebug)
if ( gtk QtDebug)
printf ( " setColors() \n " ) ;
printf ( " setColors() \n " ) ;
/*gtkStyle = style;*/
/*gtkStyle = style;*/
@ -2206,7 +2206,7 @@ void setColors(GtkStyle* style)
void getTextColor ( GdkColor * color , GtkStateType state_type )
void getTextColor ( GdkColor * color , GtkStateType state_type )
{
{
if ( ! gtk T QtEnable)
if ( ! gtk QtEnable)
return ;
return ;
if ( ( state_type = = GTK_STATE_PRELIGHT ) | | ( state_type = = GTK_STATE_ACTIVE ) | | ( state_type = = GTK_STATE_SELECTED ) )
if ( ( state_type = = GTK_STATE_PRELIGHT ) | | ( state_type = = GTK_STATE_ACTIVE ) | | ( state_type = = GTK_STATE_SELECTED ) )