mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 22:52:34 +01:00
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
This commit is contained in:
committed by
Carlos R. Mafra
parent
948dde0abd
commit
399d476126
12
src/icon.c
12
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);
|
static WIcon *icon_create_core(WScreen *scr, int coord_x, int coord_y);
|
||||||
|
|
||||||
void get_pixmap_icon_from_icon_win(WIcon *icon);
|
static void get_pixmap_icon_from_icon_win(WIcon *icon);
|
||||||
int get_pixmap_icon_from_wm_hints(WIcon *icon);
|
static int get_pixmap_icon_from_wm_hints(WIcon *icon);
|
||||||
void get_pixmap_icon_from_user_icon(WIcon *icon);
|
static void get_pixmap_icon_from_user_icon(WIcon *icon);
|
||||||
|
|
||||||
static Pixmap makeIcon(WScreen *scr, RImage *image,
|
static Pixmap makeIcon(WScreen *scr, RImage *image,
|
||||||
int titled, int shadowed,
|
int titled, int shadowed,
|
||||||
@@ -624,7 +624,7 @@ void wIconUpdate(WIcon *icon)
|
|||||||
wIconPaint(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;
|
RImage *image = NULL;
|
||||||
char *path, *file;
|
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 */
|
/* 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;
|
XWindowAttributes attr;
|
||||||
WScreen *scr = icon->core->screen_ptr;
|
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 */
|
/* 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;
|
Window jw;
|
||||||
Pixmap pixmap;
|
Pixmap pixmap;
|
||||||
|
|||||||
Reference in New Issue
Block a user