diff options
Diffstat (limited to 'knotes/knote.cpp')
-rw-r--r-- | knotes/knote.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/knotes/knote.cpp b/knotes/knote.cpp index 8a260576c..b2a804be5 100644 --- a/knotes/knote.cpp +++ b/knotes/knote.cpp @@ -70,7 +70,7 @@ #include "pushpin.xpm" -#include <kwin.h> +#include <twin.h> #include <netwm.h> #include <fixx11h.h> @@ -83,7 +83,7 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char * : TQFrame( parent, name, WStyle_Customize | WStyle_NoBorder | WDestructiveClose ), m_label( 0 ), m_pushpin( 0 ), m_fold( 0 ), m_button( 0 ), m_tool( 0 ), m_editor( 0 ), m_config( 0 ), m_journal( j ), m_find( 0 ), - m_kwinConf( KSharedConfig::openConfig( "kwinrc", true ) ), + m_twinConf( KSharedConfig::openConfig( "twinrc", true ) ), m_busy( 0 ), m_deleteWhenIdle( false ), m_blockEmitDataChanged( false ) { setAcceptDrops( true ); @@ -262,9 +262,9 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char * // can be done here since this doesn't pick up changes while KNotes is running anyway bool closeLeft = false; - m_kwinConf->setGroup( "Style" ); - if ( m_kwinConf->readBoolEntry( "CustomButtonPositions" ) ) - closeLeft = m_kwinConf->readEntry( "ButtonsOnLeft" ).find( 'X' ) > -1; + m_twinConf->setGroup( "Style" ); + if ( m_twinConf->readBoolEntry( "CustomButtonPositions" ) ) + closeLeft = m_twinConf->readEntry( "ButtonsOnLeft" ).find( 'X' ) > -1; TQPixmap pushpin_pix; if ( closeLeft ) @@ -1165,9 +1165,9 @@ void KNote::updateLayout() const int margin = m_editor->margin(); bool closeLeft = false; - m_kwinConf->setGroup( "Style" ); - if ( m_kwinConf->readBoolEntry( "CustomButtonPositions" ) ) - closeLeft = m_kwinConf->readEntry( "ButtonsOnLeft" ).find( 'X' ) > -1; + m_twinConf->setGroup( "Style" ); + if ( m_twinConf->readBoolEntry( "CustomButtonPositions" ) ) + closeLeft = m_twinConf->readEntry( "ButtonsOnLeft" ).find( 'X' ) > -1; if ( s_ppOffset ) { |