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

List:       kde-commits
Subject:    branches/work/suse_kickoff_qstyle/kicker/kicker/ui
From:       Stephan Binner <binner () kde ! org>
Date:       2007-08-19 9:26:06
Message-ID: 1187515566.077951.32378.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 701783 by binner:

trying to reduce diff mess: adjust to new liblazy API due to new PolicyKit (>=0.4)


 M  +7 -7      k_new_mnu.cpp  


--- branches/work/suse_kickoff_qstyle/kicker/kicker/ui/k_new_mnu.cpp #701782:701783
@@ -484,7 +484,7 @@
              * pretty disturbing */
             if ( (receiver == m_searchPixmap ||
                  ( ( receiver == m_searchLabel || receiver==m_kcommand->lineEdit() ) &&
-                 ( e->type() == QEvent::KeyPress || e->type() == QEvent::Wheel 
+                 ( e->type() == QEvent::KeyPress || e->type() == QEvent::Wheel
                    || e->type() == QEvent::MouseButtonPress ) ) ) &&
                     !m_isShowing) {
                 raiseWidget = m_searchWidget;
@@ -1640,7 +1640,7 @@
     PanelPopupButton *kButton = MenuManager::the()->findKButtonFor( this );
     if (kButton)
     {
-        setOrientation((kButton->center().y()<QApplication::desktop()->height()/2) 
+        setOrientation((kButton->center().y()<QApplication::desktop()->height()/2)
                 ? TopDown : BottomUp);
     }
 
@@ -2058,7 +2058,7 @@
 				    score -= 100;
 				else if (s->terminal())
 				    score -= 50;
-				else 
+				else
 				    score += kMin(10, s->initialPreference());
 
 				QString firstLine, secondLine;
@@ -3084,7 +3084,7 @@
 
         // place the button box above the footer widget, horizontal placement
         // has the width of the edge graphics subtracted
-        m_tabBar->setGeometry(button_box_left.width(), 
+        m_tabBar->setGeometry(button_box_left.width(),
                 height() - m_footer->minimumSize().height() -
                 m_tabBar->sizeHint().height(),
                 width() - button_box_left.width(),
@@ -3710,11 +3710,11 @@
 	else
 	     suspend_disk = false;
 
-	if (liblazy_polkit_is_user_allowed_by_uid(getuid(), "hal-power-hibernate", NULL) != 1)
+	if (liblazy_hal_is_caller_privileged("hal-power-hibernate") != 1)
 	     suspend_disk = false;
-	if (liblazy_polkit_is_user_allowed_by_uid(getuid(), "hal-power-suspend", NULL) != 1)
+	if (liblazy_hal_is_caller_privileged("hal-power-suspend") != 1)
 	     suspend_ram = false;
-	if (liblazy_polkit_is_user_allowed_by_uid(getuid(), "hal-power-standby", NULL) != 1)
+	if (liblazy_hal_is_caller_privileged("hal-power-standby") != 1)
 	    standby = false;
 
 	if ( ! ( standby + suspend_ram + suspend_disk ) )
[prev in list] [next in list] [prev in thread] [next in thread] 

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