summaryrefslogtreecommitdiff
path: root/app/fvwm/libs
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2011-01-18 19:28:34 +0000
committerMarc Espie <espie@cvs.openbsd.org>2011-01-18 19:28:34 +0000
commitc3237ce75da9d1a82ae9059697434c1187f15237 (patch)
tree481dd4bd4ce22c3066787f48aa0c982999afb5b2 /app/fvwm/libs
parent41d09277103eaf813d0d8e18193dd8881d0dceed (diff)
Picture -> FvwmPicture, to avoid collisions with xrandr includes.
As noticed by Tristan Le Guern. okay matthieu@
Diffstat (limited to 'app/fvwm/libs')
-rw-r--r--app/fvwm/libs/Picture.c24
-rw-r--r--app/fvwm/libs/fvwmlib.h8
2 files changed, 16 insertions, 16 deletions
diff --git a/app/fvwm/libs/Picture.c b/app/fvwm/libs/Picture.c
index 33cdb1f88..afcbaefd8 100644
--- a/app/fvwm/libs/Picture.c
+++ b/app/fvwm/libs/Picture.c
@@ -11,7 +11,7 @@
Some of the logic comes from pixy2, so the copyright is below.
*/
/*
- * $Id: Picture.c,v 1.1 2006/11/26 10:53:41 matthieu Exp $
+ * $Id: Picture.c,v 1.2 2011/01/18 19:28:33 espie Exp $
* Copyright 1996, Romano Giannetti. No guarantees or warantees or anything
* are provided or implied in any way whatsoever. Use this program at your
* own risk. Permission to use this program for any purpose is given,
@@ -57,7 +57,7 @@ static double c400_distance(XColor *, XColor *); /* prototype */
#include "fvwmlib.h"
-static Picture *PictureList=NULL;
+static FvwmPicture *PictureList=NULL;
Colormap PictureCMap;
Display *PictureSaveDisplay; /* Save area for display pointer */
@@ -71,17 +71,17 @@ void InitPictureCMap(Display *dpy,Window Root)
}
-Picture *LoadPicture(Display *dpy,Window Root,char *path, int color_limit)
+FvwmPicture *LoadPicture(Display *dpy,Window Root,char *path, int color_limit)
{
int l;
- Picture *p;
+ FvwmPicture *p;
#ifdef XPM
XpmAttributes xpm_attributes;
int rc;
XpmImage my_image = {0};
#endif
- p=(Picture*)safemalloc(sizeof(Picture));
+ p=(FvwmPicture*)safemalloc(sizeof(FvwmPicture));
p->count=1;
p->name=path;
p->next=NULL;
@@ -123,11 +123,11 @@ Picture *LoadPicture(Display *dpy,Window Root,char *path, int color_limit)
return NULL;
}
-Picture *GetPicture(Display *dpy,Window Root,char *IconPath,char *PixmapPath,
- char *name, int color_limit)
+FvwmPicture *GetPicture(Display *dpy,Window Root,char *IconPath,
+ char *PixmapPath, char *name, int color_limit)
{
char *path;
- Picture *p;
+ FvwmPicture *p;
if(!(path=findIconFile(name,PixmapPath,R_OK)))
if(!(path=findIconFile(name,IconPath,R_OK)))
@@ -138,11 +138,11 @@ Picture *GetPicture(Display *dpy,Window Root,char *IconPath,char *PixmapPath,
return p;
}
-Picture *CachePicture(Display *dpy,Window Root,char *IconPath,char *PixmapPath,
+FvwmPicture *CachePicture(Display *dpy,Window Root,char *IconPath,char *PixmapPath,
char *name, int color_limit)
{
char *path;
- Picture *p=PictureList;
+ FvwmPicture *p=PictureList;
/* First find the full pathname */
#ifdef XPM
@@ -186,9 +186,9 @@ Picture *CachePicture(Display *dpy,Window Root,char *IconPath,char *PixmapPath,
}
-void DestroyPicture(Display *dpy,Picture *p)
+void DestroyPicture(Display *dpy,FvwmPicture *p)
{
- Picture *q=PictureList;
+ FvwmPicture *q=PictureList;
if (!p) /* bag out if NULL */
return;
diff --git a/app/fvwm/libs/fvwmlib.h b/app/fvwm/libs/fvwmlib.h
index 5fedf03f2..4018f2515 100644
--- a/app/fvwm/libs/fvwmlib.h
+++ b/app/fvwm/libs/fvwmlib.h
@@ -121,14 +121,14 @@ typedef struct PictureThing
unsigned int width;
unsigned int height;
unsigned int count;
-} Picture;
+} FvwmPicture;
void InitPictureCMap(Display*,Window);
-Picture *GetPicture(Display* dpy, Window Root, char* IconPath,
+FvwmPicture *GetPicture(Display* dpy, Window Root, char* IconPath,
char* PixmapPath, char* name, int color_limit);
-Picture *CachePicture(Display*,Window,char *iconpath,
+FvwmPicture *CachePicture(Display*,Window,char *iconpath,
char *pixmappath,char*,int);
-void DestroyPicture(Display*,Picture*);
+void DestroyPicture(Display*,FvwmPicture*);
char *findIconFile(char *icon, char *pathlist, int type);
#ifdef XPM