From kde-commits Sun Sep 12 10:54:36 2010 From: Eike Hein Date: Sun, 12 Sep 2010 10:54:36 +0000 To: kde-commits Subject: extragear/utils/yakuake Message-Id: <20100912105436.BC3A3AC887 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=128428861216411 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();