The WScreen arguments in the functions wWorkspaceMenuUpdate() and
makeMakeShortcutMenu() is not used now, so can be removed.

Signed-off-by: Rodolfo García Peñas (kix) <k...@kix.es>
---
 src/defaults.c  |  4 ++--
 src/dock.c      |  2 +-
 src/rootmenu.c  |  2 +-
 src/winmenu.c   | 19 ++-----------------
 src/workspace.c | 14 +++++++-------
 src/workspace.h |  2 +-
 6 files changed, 14 insertions(+), 29 deletions(-)

diff --git a/src/defaults.c b/src/defaults.c
index bcd5835..a94a90b 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -1204,9 +1204,9 @@ void wReadDefaults(WScreen * scr, WMPropList * new_dict)
 
                if (needs_refresh & REFRESH_WORKSPACE_MENU) {
                        if (wks_info.workspace_menu)
-                               wWorkspaceMenuUpdate(scr, 
wks_info.workspace_menu);
+                               wWorkspaceMenuUpdate(wks_info.workspace_menu);
                        if (wks_info.clip_ws_menu)
-                               wWorkspaceMenuUpdate(scr, 
wks_info.clip_ws_menu);
+                               wWorkspaceMenuUpdate(wks_info.clip_ws_menu);
                        if (wks_info.workspace_submenu)
                                wks_info.workspace_submenu->flags.realized = 0;
                        if (wks_info.clip_submenu)
diff --git a/src/dock.c b/src/dock.c
index 49c9580..d5d395e 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -3967,7 +3967,7 @@ static void iconMouseDown(WObjDescriptor *desc, XEvent 
*event)
                        WMenu *wsMenu = wks_info.clip_ws_menu;
                        int xpos;
 
-                       wWorkspaceMenuUpdate(scr, wsMenu);
+                       wWorkspaceMenuUpdate(wsMenu);
 
                        xpos = event->xbutton.x_root - 
wsMenu->frame->core->width / 2 - 1;
                        if (xpos < 0) {
diff --git a/src/rootmenu.c b/src/rootmenu.c
index aed27e0..e5bb7fb 100644
--- a/src/rootmenu.c
+++ b/src/rootmenu.c
@@ -781,7 +781,7 @@ static WMenuEntry *addWorkspaceMenu(WScreen *scr, WMenu 
*menu, const char *title
                entry = wMenuAddCallback(menu, title, NULL, NULL);
                wMenuEntrySetCascade(menu, entry, wsmenu);
 
-               wWorkspaceMenuUpdate(scr, wsmenu);
+               wWorkspaceMenuUpdate(wsmenu);
        }
        return entry;
 }
diff --git a/src/winmenu.c b/src/winmenu.c
index e4ad17b..4bf8c1a 100644
--- a/src/winmenu.c
+++ b/src/winmenu.c
@@ -356,19 +356,9 @@ static WMenu *makeWorkspaceMenu(WScreen * scr)
        return menu;
 }
 
-static WMenu *makeMakeShortcutMenu(WScreen * scr, WMenu * menu)
+static WMenu *makeMakeShortcutMenu(WMenu *menu)
 {
-       /*
-          WMenu *menu;
-        */
        int i;
-       /*
-          menu = wMenuCreate(scr, NULL, False);
-          if (!menu) {
-          wwarning(_("could not create submenu for window menu"));
-          return NULL;
-          }
-        */
 
        for (i = 0; i < MAX_WINDOW_SHORTCUTS; i++) {
                WMenuEntry *entry;
@@ -443,12 +433,7 @@ static WMenu *createWindowMenu(WScreen * scr)
        entry = wMenuAddCallback(menu, _("Attributes..."), execMenuCommand, 
NULL);
 
        entry = wMenuAddCallback(menu, _("Options"), NULL, NULL);
-       wMenuEntrySetCascade(menu, entry, makeMakeShortcutMenu(scr, 
makeOptionsMenu(scr)));
-
-       /*
-          entry = wMenuAddCallback(menu, _("Select Shortcut"), NULL, NULL);
-          wMenuEntrySetCascade(menu, entry, makeMakeShortcutMenu(scr));
-        */
+       wMenuEntrySetCascade(menu, entry, 
makeMakeShortcutMenu(makeOptionsMenu(scr)));
 
        entry = wMenuAddCallback(menu, _("Launch"), execMenuCommand, NULL);
        entry->rtext = GetShortcutKey(wKeyBindings[WKBD_RELAUNCH]);
diff --git a/src/workspace.c b/src/workspace.c
index 0d2ab3b..e5a1889 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -115,8 +115,8 @@ int wWorkspaceNew(WScreen *scr)
 
                wks_info.workspaces = list;
 
-               wWorkspaceMenuUpdate(scr, wks_info.workspace_menu);
-               wWorkspaceMenuUpdate(scr, wks_info.clip_ws_menu);
+               wWorkspaceMenuUpdate(wks_info.workspace_menu);
+               wWorkspaceMenuUpdate(wks_info.clip_ws_menu);
                wNETWMUpdateDesktop(scr);
                WMPostNotificationName(WMNWorkspaceCreated, scr, (void 
*)(uintptr_t) (wks_info.workspace_count - 1));
                XFlush(dpy);
@@ -166,9 +166,9 @@ Bool wWorkspaceDelete(WScreen * scr, int workspace)
        wks_info.workspace_count--;
 
        /* update menu */
-       wWorkspaceMenuUpdate(scr, wks_info.workspace_menu);
+       wWorkspaceMenuUpdate(wks_info.workspace_menu);
        /* clip workspace menu */
-       wWorkspaceMenuUpdate(scr, wks_info.clip_ws_menu);
+       wWorkspaceMenuUpdate(wks_info.clip_ws_menu);
 
        /* update also window menu */
        if (wks_info.workspace_submenu) {
@@ -483,9 +483,9 @@ void wWorkspaceForceChange(WScreen * scr, int workspace)
        wks_info.last_used_workspace = wks_info.current_workspace;
        wks_info.current_workspace = workspace;
 
-       wWorkspaceMenuUpdate(scr, wks_info.workspace_menu);
+       wWorkspaceMenuUpdate(wks_info.workspace_menu);
 
-       wWorkspaceMenuUpdate(scr, wks_info.clip_ws_menu);
+       wWorkspaceMenuUpdate(wks_info.clip_ws_menu);
 
        toUnmapSize = 16;
        toUnmapCount = 0;
@@ -738,7 +738,7 @@ WMenu *wWorkspaceMenuMake(WScreen * scr, Bool titled)
        return wsmenu;
 }
 
-void wWorkspaceMenuUpdate(WScreen * scr, WMenu * menu)
+void wWorkspaceMenuUpdate(WMenu *menu)
 {
        int i;
        long ws;
diff --git a/src/workspace.h b/src/workspace.h
index 56f7cfa..1000441 100644
--- a/src/workspace.h
+++ b/src/workspace.h
@@ -53,7 +53,7 @@ Bool wWorkspaceDelete(WScreen *scr, int workspace);
 void wWorkspaceChange(WScreen *scr, int workspace);
 void wWorkspaceForceChange(WScreen *scr, int workspace);
 WMenu *wWorkspaceMenuMake(WScreen *scr, Bool titled);
-void wWorkspaceMenuUpdate(WScreen *scr, WMenu *menu);
+void wWorkspaceMenuUpdate(WMenu *menu);
 void wWorkspaceMenuEdit(WScreen *scr);
 void wWorkspaceSaveState(WScreen *scr, WMPropList *old_state);
 void wWorkspaceRestoreState(WScreen *scr);
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to