mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
XPM: Replace calls to XmeXpm*() with regular Xpm*()
This is no longer needed on modern Motif's.
This commit is contained in:
parent
59b83865ef
commit
825a504a11
2 changed files with 9 additions and 9 deletions
|
@ -49,7 +49,7 @@ int _DtXpmCreatePixmapFromData(Display *display,
|
||||||
Pixmap *shapemask_return,
|
Pixmap *shapemask_return,
|
||||||
XpmAttributes *attributes)
|
XpmAttributes *attributes)
|
||||||
{
|
{
|
||||||
return XmeXpmCreatePixmapFromData(display, d, data,
|
return XpmCreatePixmapFromData(display, d, data,
|
||||||
pixmap_return, shapemask_return,
|
pixmap_return, shapemask_return,
|
||||||
attributes);
|
attributes);
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ int _DtXpmReadFileToPixmap(Display *display,
|
||||||
Pixmap *shapemask_return,
|
Pixmap *shapemask_return,
|
||||||
XpmAttributes *attributes)
|
XpmAttributes *attributes)
|
||||||
{
|
{
|
||||||
return XmeXpmReadFileToPixmap(display, d, filename,
|
return XpmReadFileToPixmap(display, d, filename,
|
||||||
pixmap_return, shapemask_return,
|
pixmap_return, shapemask_return,
|
||||||
attributes);
|
attributes);
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ int _DtXpmWriteFileFromPixmap(Display *display,
|
||||||
Pixmap shapemask,
|
Pixmap shapemask,
|
||||||
XpmAttributes *attributes)
|
XpmAttributes *attributes)
|
||||||
{
|
{
|
||||||
return XmeXpmWriteFileFromPixmap(display, filename,
|
return XpmWriteFileFromPixmap(display, filename,
|
||||||
pixmap, shapemask,
|
pixmap, shapemask,
|
||||||
attributes);
|
attributes);
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ int _DtXpmReadFileToImage(Display *display,
|
||||||
XImage **shapeimage_return,
|
XImage **shapeimage_return,
|
||||||
XpmAttributes *attributes)
|
XpmAttributes *attributes)
|
||||||
{
|
{
|
||||||
return XmeXpmReadFileToImage(display, filename,
|
return XpmReadFileToImage(display, filename,
|
||||||
image_return, shapeimage_return,
|
image_return, shapeimage_return,
|
||||||
attributes);
|
attributes);
|
||||||
}
|
}
|
||||||
|
@ -94,12 +94,12 @@ int _DtXpmWriteFileFromImage(Display *display,
|
||||||
XImage *shapeimage,
|
XImage *shapeimage,
|
||||||
XpmAttributes *attributes)
|
XpmAttributes *attributes)
|
||||||
{
|
{
|
||||||
return XmeXpmWriteFileFromImage(display, filename,
|
return XpmWriteFileFromImage(display, filename,
|
||||||
image, shapeimage,
|
image, shapeimage,
|
||||||
attributes);
|
attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _DtXpmFreeAttributes(XpmAttributes *attributes)
|
void _DtXpmFreeAttributes(XpmAttributes *attributes)
|
||||||
{
|
{
|
||||||
XmeXpmFreeAttributes(attributes);
|
XpmFreeAttributes(attributes);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1115,7 +1115,7 @@ WindowSystem::default_pixmap (Dimension *width, Dimension *height)
|
||||||
XpmAttributes xpm_attr ;
|
XpmAttributes xpm_attr ;
|
||||||
xpm_attr.valuemask = 0 ;
|
xpm_attr.valuemask = 0 ;
|
||||||
|
|
||||||
XmeXpmCreatePixmapFromData(f_display,
|
XpmCreatePixmapFromData(f_display,
|
||||||
XtWindow((Widget)toplevel()),
|
XtWindow((Widget)toplevel()),
|
||||||
(char**)graphic_unavailable_data,
|
(char**)graphic_unavailable_data,
|
||||||
&temp_pixmap,
|
&temp_pixmap,
|
||||||
|
@ -1175,7 +1175,7 @@ WindowSystem::detached_pixmap(Dimension *width, Dimension *height)
|
||||||
XpmAttributes xpm_attr;
|
XpmAttributes xpm_attr;
|
||||||
xpm_attr.valuemask = 0 ;
|
xpm_attr.valuemask = 0 ;
|
||||||
|
|
||||||
int status = XmeXpmCreatePixmapFromData(f_display,
|
int status = XpmCreatePixmapFromData(f_display,
|
||||||
XtWindow((Widget)toplevel()),
|
XtWindow((Widget)toplevel()),
|
||||||
(char**)detached_pixmap_data,
|
(char**)detached_pixmap_data,
|
||||||
&f_detached_pixmap,
|
&f_detached_pixmap,
|
||||||
|
@ -1217,7 +1217,7 @@ WindowSystem::read_pixmap(const char *pname,
|
||||||
status = xpm_lib().ReadFileToPixmap (f_display, XtWindow ((Widget)toplevel()),
|
status = xpm_lib().ReadFileToPixmap (f_display, XtWindow ((Widget)toplevel()),
|
||||||
fname, &pixmap, NULL, &xpm_attributes);
|
fname, &pixmap, NULL, &xpm_attributes);
|
||||||
#else
|
#else
|
||||||
status = XmeXpmReadFileToPixmap (f_display, XtWindow ((Widget)toplevel()),
|
status = XpmReadFileToPixmap (f_display, XtWindow ((Widget)toplevel()),
|
||||||
fname, &pixmap, NULL, &xpm_attributes);
|
fname, &pixmap, NULL, &xpm_attributes);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue