Disable non-functional group show/hide stuff.

SVN revision: 28506
This commit is contained in:
Kim Woelders 2007-03-01 02:13:35 +00:00
parent 6fc14cbe7e
commit 71674245e6
2 changed files with 9 additions and 1 deletions

View File

@ -148,7 +148,7 @@ ADD_MENU_TEXT_ITEM("Add this window to the current group", __A_CMD, "gop * add
ADD_MENU_TEXT_ITEM("Select group to add this window to", __A_CMD, "groups cfg add")
ADD_MENU_TEXT_ITEM("Remove this window from a group", __A_CMD, "groups cfg del")
ADD_MENU_TEXT_ITEM("Destroy a group this window belongs to", __A_CMD, "groups cfg break")
ADD_MENU_TEXT_ITEM("Show/Hide this window's group(s)", __A_CMD, "gop * showhide")
/*ADD_MENU_TEXT_ITEM("Show/Hide this window's group(s)", __A_CMD, "gop * showhide")*/
END_MENU
BEGIN_NEW_MENU("WINOPS_MENU", "EMPTY")

View File

@ -33,6 +33,8 @@
#include "timers.h"
#include <math.h>
#define USE_GROUP_SHOWHIDE 0 /* Don't think this is useful. */
#define SET_OFF 0
#define SET_ON 1
#define SET_TOGGLE 2
@ -389,6 +391,7 @@ GetWinGroupMemberNames(Group ** groups, int num)
return group_member_strings;
}
#if USE_GROUP_SHOWHIDE
static void
ShowHideWinGroups(EWin * ewin, int group_index, char onoff)
{
@ -465,6 +468,11 @@ ShowHideWinGroups(EWin * ewin, int group_index, char onoff)
Efree(gwins);
SaveGroups();
}
#else
#define ShowHideWinGroups(ewin, group_index, onoff)
#endif /* USE_GROUP_SHOWHIDE */
void
SaveGroups(void)