[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: PATCH: KDockWidget
From: Christoph Cullmann <crossfire () babylon2k ! de>
Date: 2001-05-27 21:02:58
[Download RAW message or body]
Hi,
here is a patch for the kdockwidget stuff in kdeui.
I only want to ask if it is correct (in order of be BC).
The patch makes it possible to set the Net::WindowType of a dockwidget (for
example to NET::Tool, like many apps want).
cu
Christoph
Index: kdockwidget.h
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kdockwidget.h,v
retrieving revision 1.38
diff -r1.38 kdockwidget.h
46a47,48
> #include <netwm_def.h>
>
545a548,554
>
> /**
> * Sets the type of the dock window
> *
> * @param windowType is type of dock window
> */
> void setDockWindowType (NET::WindowType windowType);
Index: kdockwidget_private.h
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kdockwidget_private.h,v
retrieving revision 1.7
diff -r1.7 kdockwidget_private.h
22a23
> #include <netwm_def.h>
105a107
> NET::WindowType windowType;
Index: kdockwidget.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kdockwidget.cpp,v
retrieving revision 1.57
diff -r1.57 kdockwidget.cpp
27a28,29
> #include <kwin.h>
>
407,409c409,410
< #ifndef NO_KDE2
< // KWin::setType( winId(), NET::Tool );
< #endif
---
>
> KWin::setType( winId(), d->windowType );
427a429,433
> }
>
> void KDockWidget::setDockWindowType (NET::WindowType windowType)
> {
> d->windowType = windowType;
Index: kdockwidget_private.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kdockwidget_private.cpp,v
retrieving revision 1.18
diff -r1.18 kdockwidget_private.cpp
283a284
> windowType = NET::Normal;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic