From 18990530b0305e692a9e9b541b44332c0b02dcf4 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 29 Jan 2003 05:22:19 +0000 Subject: [PATCH] don't create workspaces menu items if only 1 workspace. Fix for #101952 2003-01-29 Havoc Pennington * src/menu.c (meta_window_menu_new): don't create workspaces menu items if only 1 workspace. Fix for #101952 from Orien Vandenbergh --- ChangeLog | 6 ++++++ src/menu.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b86431010..71e5b448b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-01-29 Havoc Pennington + + * 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 * Re-instated visual-bell patch diff --git a/src/menu.c b/src/menu.c index 335e965ba..8c1e0faa8 100644 --- a/src/menu.c +++ b/src/menu.c @@ -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;