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

List:       kde-commits
Subject:    extragear/utils/yakuake
From:       Eike Hein <hein () kde ! org>
Date:       2010-09-12 10:54:36
Message-ID: 20100912105436.BC3A3AC887 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1174420 by hein:

Update Screen menu contents when the number of screens attached to
the system changes. Nice catch and patch by Jeffery MacEachern.


 M  +2 -0      ChangeLog  
 M  +1 -0      app/mainwindow.cpp  
 M  +3 -1      app/mainwindow.h  


--- trunk/extragear/utils/yakuake/ChangeLog #1174419:1174420
@@ -13,6 +13,8 @@
   left, right, top or bottom direction by 10px, as well as D-Bus calls to
   attempt to grow any particular terminal by a given amount of pixels in
   one of these directions.
+* The contents of the "Screen" sub-menu in the main menu now get updated
+  when the number of screens attached to the system changes.
 
 
 Changes in 2.9.7:
--- trunk/extragear/utils/yakuake/app/mainwindow.cpp #1174419:1174420
@@ -99,6 +99,7 @@
     connect(&m_mousePoller, SIGNAL(timeout()), this, SLOT(pollMouse()));
 
     connect(KWindowSystem::self(), SIGNAL(workAreaChanged()), this, SLOT(applyWindowGeometry()));
+    connect(KApplication::desktop(), SIGNAL(screenCountChanged(int)), this, SLOT(updateScreenMenu()));
 
     applySettings();
 
--- trunk/extragear/utils/yakuake/app/mainwindow.h #1174419:1174420
@@ -91,7 +91,9 @@
         void applyWindowGeometry();
         void setWindowGeometry(int width, int height, int position);
 
+        void updateScreenMenu();
         void setScreen(QAction* action);
+
         void setWindowWidth(int width);
         void setWindowHeight(int height);
         void setWindowWidth(QAction* action);
@@ -130,7 +132,7 @@
         void setupActions();
 
         void setupMenu();
-        void updateScreenMenu();
+
         void updateWindowSizeMenus();
         void updateWindowHeightMenu();
         void updateWindowWidthMenu();
[prev in list] [next in list] [prev in thread] [next in thread] 

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