[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kwin/kcmkwin/kwindecoration
From:       Sandro Giessl <sandro () giessl ! com>
Date:       2005-02-04 11:38:42
Message-ID: 20050204113842.6D2111D01B () office ! kde ! org
[Download RAW message or body]

CVS commit by giessl: 

Inspired by Knut Johansson's patch:
Fix the decoration preview of decorations like Quartz and Web when custom
button positions get disabled. They rely on titleButtonsLeft()/Right()
returning the default value described in the API docs.


  M +9 -4      preview.cpp   1.15


--- kdebase/kwin/kcmkwin/kwindecoration/preview.cpp  #1.14:1.15
@@ -459,8 +459,13 @@ unsigned long KDecorationPreviewOptions:
     if (customButtonsChanged)
         d->custom_button_positions = customButtons;
+    if (customButtons) {
     if (!customTitleButtonsLeft.isNull() )
         d->title_buttons_left = customTitleButtonsLeft;
     if (!customTitleButtonsRight.isNull() )
         d->title_buttons_right = customTitleButtonsRight;
+    } else {
+        d->title_buttons_left = "MS";
+        d->title_buttons_right = "HIAX";
+    }
 
     return changed;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic