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

List:       kde-core-devel
Subject:    kicker patches
From:       Matthias Elter <me () caldera ! de>
Date:       2000-09-13 7:59:38
[Download RAW message or body]

kicker_panelbutton.patch fixes #10241.
kicker_service_mnu.patch fixes K-Menu Drag&Drop problems.

Bye,
Matthias

-- 
    _____     ___
   /  __/____/  /                Caldera (Deutschland) GmbH
  /  /_/ __  / /__           Naegelsbachstr. 49c, 91052 Erlangen
 /_____//_/ /____/          Matthias Elter,  email: me@caldera.de
==== /_____/ ======   phone: ++49 9131 7192 300, fax: ++49 9131 7192 399
 Caldera OpenLinux                  http://www.caldera.de

["kicker_service_mnu.patch" (text/english)]

Index: service_mnu.cpp
===================================================================
RCS file: /home/kde/kdebase/kicker/ui/service_mnu.cpp,v
retrieving revision 1.1
diff -u -r1.1 service_mnu.cpp
--- service_mnu.cpp	2000/08/08 13:13:36	1.1
+++ service_mnu.cpp	2000/09/13 07:31:11
@@ -227,7 +227,11 @@
     d->setUnicodeUris(QStringList(path));
     d->dragCopy();
     close();
-
+    
+    // Set the startposition outside the panel, so there is no drag initiated
+    // when we use drag and click to select items. A drag is only initiated when
+    // you click to open the menu, and then press and drag an item.
+    startPos_ = QPoint(-1,-1);
 }
 
 void PanelServiceMenu::dragEnterEvent(QDragEnterEvent *e)

["kicker_panelbutton.patch" (text/plain)]

Index: panelbutton.cpp
===================================================================
RCS file: /home/kde/kdebase/kicker/core/panelbutton.cpp,v
retrieving revision 1.6
diff -u -r1.6 panelbutton.cpp
--- panelbutton.cpp	2000/09/12 08:18:17	1.6
+++ panelbutton.cpp	2000/09/13 07:24:07
@@ -321,11 +321,16 @@
 
 void PanelKButton::slotAccelActivated()
 {
-  setDown(true);
-  topMenu->hide();
-  topMenu->initialize();
-  topMenu->popup(getPopupPosition(topMenu));
-  topMenu->setActiveItem(0);
+    if (topMenu->isVisible()) {
+	setDown(false);
+	topMenu->hide();
+    }
+    else {
+	setDown(true);
+	topMenu->initialize();
+	topMenu->popup(getPopupPosition(topMenu));
+	topMenu->setActiveItem(0);
+    }
 }
 
 void PanelKButton::slotExecMenu()


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

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