diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-21 16:58:56 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-21 16:58:56 +0000 |
| commit | 9960ef2ff99a8d39b35518e178a624b19f758525 (patch) | |
| tree | 14313c46c1f19cb2028f1fa4efd91771b17c081d | |
| parent | ddb6bd46670e2e22466ab2529c9d522e13f654fa (diff) | |
use the new action_run symantics
| -rw-r--r-- | openbox/client_list_menu.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openbox/client_list_menu.c b/openbox/client_list_menu.c index acf9f071..ccc594c0 100644 --- a/openbox/client_list_menu.c +++ b/openbox/client_list_menu.c @@ -31,7 +31,8 @@ static GSList *desktop_menus; -typedef struct { +typedef struct +{ guint desktop; } DesktopData; @@ -92,12 +93,11 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data) when we make the actions! */ static void desk_menu_execute(ObMenuEntry *self, guint state, gpointer data) { - GSList *it; + ObAction *a; - for (it = self->data.normal.actions; it; it = g_slist_next(it)) - { - ObAction *act = it->data; - action_run(it->data, act->data.any.c, state); + if (self->data.normal.actions) { + a = self->data.normal.actions->data; + action_run(self->data.normal.actions, a->data.any.c, state); } } |
