expand/fold contact group with single click

Also make arrow images the same size to prevent the group name from
moving on expand/fold.
cusax-fix
Sebastien Mazy 17 years ago
parent 1b6b101560
commit a77cd8bd78

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 B

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 246 B

@ -588,19 +588,6 @@ public void mouseClicked(MouseEvent e)
{
MetaContactGroup group = (MetaContactGroup) selectedValue;
// Closes or opens a group on a double click.
if (e.getClickCount() > 1)
{
if (listModel.isGroupClosed(group))
{
listModel.openGroup(group);
}
else
{
listModel.closeGroup(group);
}
}
if ((e.getModifiers() & InputEvent.BUTTON3_MASK) != 0
|| (e.isControlDown() && !e.isMetaDown()))
{
@ -619,6 +606,11 @@ public void mouseClicked(MouseEvent e)
}
else if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != 0)
{
if (listModel.isGroupClosed(group))
listModel.openGroup(group);
else
listModel.closeGroup(group);
fireContactListEvent( group,
ContactListEvent.GROUP_SELECTED,
e.getClickCount());

Loading…
Cancel
Save