aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2009-03-28 02:26:40 +0000
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2009-03-28 02:26:40 +0000
commitf88d080b3607a012f8a6e4aa2e0ebe1bdfc6cbc0 (patch)
tree31d17ba65dd65f9e1cd7efc0fff1b2fd5cc8dafc /src/net/java/sip
parent950842881d01b35cd723377d918110476a6b08c3 (diff)
downloadjitsi-f88d080b3607a012f8a6e4aa2e0ebe1bdfc6cbc0.zip
jitsi-f88d080b3607a012f8a6e4aa2e0ebe1bdfc6cbc0.tar.gz
jitsi-f88d080b3607a012f8a6e4aa2e0ebe1bdfc6cbc0.tar.bz2
Hides the contact photo at the east of the chat tool bar in order to fully free the horizontal space taken by the tool bar.
Diffstat (limited to 'src/net/java/sip')
-rwxr-xr-xsrc/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java12
-rw-r--r--src/net/java/sip/communicator/impl/gui/utils/ConfigurationManager.java23
2 files changed, 15 insertions, 20 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java b/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java
index 409eb3e..cf6fcde 100755
--- a/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java
+++ b/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java
@@ -136,8 +136,10 @@ public class ChatWindow
mainToolBar = new ExtendedMainToolBar(this);
else
mainToolBar = new MainToolBar(this);
-
- mainToolBar.setVisible(ConfigurationManager.isChatToolbarVisible());
+
+ boolean chatToolbarVisible = ConfigurationManager.isChatToolbarVisible();
+ mainToolBar.setVisible(chatToolbarVisible);
+ contactPhotoPanel.setVisible(chatToolbarVisible);
Component logoBar = LogoBar.createInstance();
if (logoBar != null)
@@ -199,7 +201,8 @@ public class ChatWindow
*/
public void setToolbarVisible(boolean b)
{
- this.mainToolBar.setVisible(b);
+ mainToolBar.setVisible(b);
+ contactPhotoPanel.setVisible(b);
}
/**
@@ -216,8 +219,7 @@ public class ChatWindow
p.setStylebarVisible(b);
// if there is tabs, set it for all
- int i, imax = this.getChatTabCount();
- for (i=0; i<imax; i++)
+ for (int i = 0, imax = this.getChatTabCount(); i < imax; i++)
{
p = (ChatPanel) this.chatTabbedPane.getComponentAt(i);
p.setStylebarVisible(b);
diff --git a/src/net/java/sip/communicator/impl/gui/utils/ConfigurationManager.java b/src/net/java/sip/communicator/impl/gui/utils/ConfigurationManager.java
index c6ca843..8853c9f 100644
--- a/src/net/java/sip/communicator/impl/gui/utils/ConfigurationManager.java
+++ b/src/net/java/sip/communicator/impl/gui/utils/ConfigurationManager.java
@@ -291,22 +291,15 @@ public class ConfigurationManager
}
// Load the "isChatToolbarVisible" property
- String chatToolbarVisible = configService.getString(
- "net.java.sip.communicator.impl.gui.chat.ChatWindow.showToolbar");
-
- if(chatToolbarVisible != null && chatToolbarVisible.length() > 0)
- isChatToolbarVisible = Boolean.parseBoolean(chatToolbarVisible);
- else
- isChatToolbarVisible = true;
-
+ isChatToolbarVisible
+ = configService.getBoolean(
+ "net.java.sip.communicator.impl.gui.chat.ChatWindow.showToolbar",
+ true);
// Load the "isChatToolbarVisible" property
- String chatStylebarVisible = configService.getString(
- "net.java.sip.communicator.impl.gui.chat.ChatWindow.showStylebar");
-
- if(chatStylebarVisible != null && chatStylebarVisible.length() > 0)
- isChatStylebarVisible = Boolean.parseBoolean(chatStylebarVisible);
- else
- isChatStylebarVisible = true;
+ isChatStylebarVisible
+ = configService.getBoolean(
+ "net.java.sip.communicator.impl.gui.chat.ChatWindow.showStylebar",
+ true);
// Load the "lastContactParent" property.
lastContactParent = configService.getString(