From 399d47612611336c272de50eef1a0914fe9c6088 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Tue, 23 Oct 2012 23:59:55 +0200 Subject: [PATCH] declare get_pixmap_icon_from_* as static functions The functions: void get_pixmap_icon_from_icon_win(WIcon *icon); int get_pixmap_icon_from_wm_hints(WIcon *icon); void get_pixmap_icon_from_user_icon(WIcon *icon); should be static, because are only used in icon.c --- src/icon.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/icon.c b/src/icon.c index 51f838fb..bb73c64f 100644 --- a/src/icon.c +++ b/src/icon.c @@ -60,9 +60,9 @@ static void miniwindowDblClick(WObjDescriptor * desc, XEvent * event); static WIcon *icon_create_core(WScreen *scr, int coord_x, int coord_y); -void get_pixmap_icon_from_icon_win(WIcon *icon); -int get_pixmap_icon_from_wm_hints(WIcon *icon); -void get_pixmap_icon_from_user_icon(WIcon *icon); +static void get_pixmap_icon_from_icon_win(WIcon *icon); +static int get_pixmap_icon_from_wm_hints(WIcon *icon); +static void get_pixmap_icon_from_user_icon(WIcon *icon); static Pixmap makeIcon(WScreen *scr, RImage *image, int titled, int shadowed, @@ -624,7 +624,7 @@ void wIconUpdate(WIcon *icon) wIconPaint(icon); } -void get_pixmap_icon_from_user_icon(WIcon *icon) +static void get_pixmap_icon_from_user_icon(WIcon *icon) { RImage *image = NULL; char *path, *file; @@ -667,7 +667,7 @@ void get_pixmap_icon_from_user_icon(WIcon *icon) } /* Get the Pixmap from the WIcon of the WWindow */ -void get_pixmap_icon_from_icon_win(WIcon * icon) +static void get_pixmap_icon_from_icon_win(WIcon * icon) { XWindowAttributes attr; WScreen *scr = icon->core->screen_ptr; @@ -724,7 +724,7 @@ void get_pixmap_icon_from_icon_win(WIcon * icon) } /* Get the Pixmap from the XWindow wm_hints */ -int get_pixmap_icon_from_wm_hints(WIcon *icon) +static int get_pixmap_icon_from_wm_hints(WIcon *icon) { Window jw; Pixmap pixmap; -- 2.11.4.GIT