use the new action_run symantics
This commit is contained in:
parent
ddb6bd4667
commit
9960ef2ff9
1 changed files with 6 additions and 6 deletions
|
@ -31,7 +31,8 @@
|
||||||
|
|
||||||
static GSList *desktop_menus;
|
static GSList *desktop_menus;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct
|
||||||
|
{
|
||||||
guint desktop;
|
guint desktop;
|
||||||
} DesktopData;
|
} DesktopData;
|
||||||
|
|
||||||
|
@ -92,12 +93,11 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data)
|
||||||
when we make the actions! */
|
when we make the actions! */
|
||||||
static void desk_menu_execute(ObMenuEntry *self, guint state, gpointer data)
|
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))
|
if (self->data.normal.actions) {
|
||||||
{
|
a = self->data.normal.actions->data;
|
||||||
ObAction *act = it->data;
|
action_run(self->data.normal.actions, a->data.any.c, state);
|
||||||
action_run(it->data, act->data.any.c, state);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue