Author: rpmcruz Date: Tue Dec 2 02:25:35 2008 New Revision: 53797 URL: http://svn.opensuse.org/viewcvs/yast?rev=53797&view=rev Log: Update icon when setting key as well. Modified: trunk/gtk/src/YGPushButton.cc Modified: trunk/gtk/src/YGPushButton.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGPushButton.cc?rev=53797&r1=53796&r2=53797&view=diff ============================================================================== --- trunk/gtk/src/YGPushButton.cc (original) +++ trunk/gtk/src/YGPushButton.cc Tue Dec 2 02:25:35 2008 @@ -86,6 +86,13 @@ } #endif + virtual void setFunctionKey (int key) + { + YPushButton::setFunctionKey (key); + if (!m_labelIcon && hasFunctionKey()) + setStockIcon (label()); + } + virtual void setHelpButton (bool helpButton) { YPushButton::setHelpButton (helpButton); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org