diff options
author | Yana Stamcheva <yana@jitsi.org> | 2010-09-29 17:28:13 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2010-09-29 17:28:13 +0000 |
commit | 73eb6b22b00fa15e97f2b71516df26251d0311c6 (patch) | |
tree | 6380da8bda9b4a18fda23670f1f9cfdaf964a2d3 /src/net/java/sip/communicator/impl/gui/main/menus | |
parent | dcc9ea2fe3c47ff0b33dd2f789f3ae8244ea5cf8 (diff) | |
download | jitsi-73eb6b22b00fa15e97f2b71516df26251d0311c6.zip jitsi-73eb6b22b00fa15e97f2b71516df26251d0311c6.tar.gz jitsi-73eb6b22b00fa15e97f2b71516df26251d0311c6.tar.bz2 |
Added a property allowing to hide option menus and buttons and account configuration form.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/menus')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/menus/ToolsMenu.java | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/menus/ToolsMenu.java b/src/net/java/sip/communicator/impl/gui/main/menus/ToolsMenu.java index c617911..955833a 100644 --- a/src/net/java/sip/communicator/impl/gui/main/menus/ToolsMenu.java +++ b/src/net/java/sip/communicator/impl/gui/main/menus/ToolsMenu.java @@ -15,6 +15,7 @@ import net.java.sip.communicator.impl.gui.*; import net.java.sip.communicator.impl.gui.event.*; import net.java.sip.communicator.impl.gui.main.*; import net.java.sip.communicator.impl.gui.main.call.conference.*; +import net.java.sip.communicator.impl.gui.main.configforms.*; import net.java.sip.communicator.impl.gui.main.contactlist.*; import net.java.sip.communicator.impl.gui.utils.*; import net.java.sip.communicator.service.gui.*; @@ -213,11 +214,20 @@ public class ToolsMenu */ private void registerMenuItems() { - UIService uiService = GuiActivator.getUIService(); - if ((uiService == null) || !uiService.useMacOSXScreenMenuBar() - || !registerConfigMenuItemMacOSX()) + // We only add the options button if the property SHOW_OPTIONS_WINDOW + // specifies so or if it's not set. + Boolean showOptionsProp + = GuiActivator.getConfigurationService() + .getBoolean(ConfigurationFrame.SHOW_OPTIONS_WINDOW, true); + + if (showOptionsProp.booleanValue()) { - registerConfigMenuItemNonMacOSX(); + UIService uiService = GuiActivator.getUIService(); + if ((uiService == null) || !uiService.useMacOSXScreenMenuBar() + || !registerConfigMenuItemMacOSX()) + { + registerConfigMenuItemNonMacOSX(); + } } // Marks this feature as an ongoing work until its completed and fully |