projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c80db2
)
disable the "Go there" menu entry when its the current desktop
author
Dana Jansens
<danakj@orodu.net>
Mon, 27 Oct 2003 19:59:11 +0000
(19:59 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 27 Oct 2003 19:59:11 +0000
(19:59 +0000)
openbox/client_list_menu.c
patch
|
blob
|
history
diff --git
a/openbox/client_list_menu.c
b/openbox/client_list_menu.c
index
2ac2903
..
a1dc266
100644
(file)
--- a/
openbox/client_list_menu.c
+++ b/
openbox/client_list_menu.c
@@
-86,10
+86,14
@@
static void desk_menu_update(ObMenuFrame *frame, gpointer data)
GSList *acts = NULL;
ObAction* act;
+ ObMenuEntry *e;
+
act = action_from_string("Desktop", OB_USER_ACTION_MENU_SELECTION);
act->data.desktop.desk = d->desktop;
acts = g_slist_append(acts, act);
- menu_add_normal(menu, 0, _("Go there..."), acts);
+ e = menu_add_normal(menu, 0, _("Go there..."), acts);
+ if (d->desktop == screen_desktop)
+ e->data.normal.enabled = FALSE;
}
}