From 51a54ba2e2b406e0f037b2559ec61ddd068fed52 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Sun, 12 Feb 2012 21:35:09 +0000 Subject: [PATCH] dock: Make some functions static --- src/dock.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/dock.c b/src/dock.c index 95659560..8a1a21f1 100644 --- a/src/dock.c +++ b/src/dock.c @@ -108,7 +108,7 @@ static void clipLeave(WDock *dock); static void handleClipChangeWorkspace(WScreen *scr, XEvent *event); -Bool moveIconBetweenDocks(WDock *src, WDock *dest, WAppIcon *icon, int x, int y); +static Bool moveIconBetweenDocks(WDock *src, WDock *dest, WAppIcon *icon, int x, int y); static void clipEnterNotify(WObjDescriptor *desc, XEvent *event); static void clipLeaveNotify(WObjDescriptor *desc, XEvent *event); @@ -118,6 +118,8 @@ static void launchDockedApplication(WAppIcon *btn, Bool withSelection); static void clipAutoLower(void *cdata); static void clipAutoRaise(void *cdata); +static void reattachIcon(WDock *dock, WAppIcon *icon, int x, int y); +static WAppIcon *mainIconCreate(WScreen *scr, int type); static void make_keys(void) { @@ -733,7 +735,7 @@ static void unhideHereCallback(WMenu *menu, WMenuEntry *entry) wUnhideApplication(wapp, False, True); } -WAppIcon *mainIconCreate(WScreen *scr, int type) +static WAppIcon *mainIconCreate(WScreen *scr, int type) { WAppIcon *btn; int x_pos; @@ -1991,7 +1993,7 @@ Bool wDockAttachIcon(WDock *dock, WAppIcon *icon, int x, int y) return True; } -void reattachIcon(WDock *dock, WAppIcon *icon, int x, int y) +static void reattachIcon(WDock *dock, WAppIcon *icon, int x, int y) { int index; @@ -2008,7 +2010,7 @@ void reattachIcon(WDock *dock, WAppIcon *icon, int x, int y) icon->y_pos = dock->y_pos + y * ICON_SIZE; } -Bool moveIconBetweenDocks(WDock *src, WDock *dest, WAppIcon *icon, int x, int y) +static Bool moveIconBetweenDocks(WDock *src, WDock *dest, WAppIcon *icon, int x, int y) { WWindow *wwin; char *command;