don't create workspaces menu items if only 1 workspace. Fix for #101952

2003-01-29  Havoc Pennington  <hp@pobox.com>

	* src/menu.c (meta_window_menu_new): don't create workspaces
	menu items if only 1 workspace. Fix for #101952 from
	Orien Vandenbergh
This commit is contained in:
Havoc Pennington 2003-01-29 05:22:19 +00:00 committed by Havoc Pennington
parent b424364710
commit 18990530b0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-01-29 Havoc Pennington <hp@pobox.com>
* src/menu.c (meta_window_menu_new): don't create workspaces
menu items if only 1 workspace. Fix for #101952 from
Orien Vandenbergh
2003-01-28 Bill Haneman <bill.haneman@sun.com>
* Re-instated visual-bell patch

View File

@ -316,7 +316,7 @@ meta_window_menu_new (MetaFrames *frames,
meta_verbose ("Creating %d-workspace menu current space %d\n",
n_workspaces, active_workspace);
if (n_workspaces > 0)
if (n_workspaces > 1)
{
GtkWidget *mi;
Display *display;