XPM: Replace calls to XmeXpm*() with regular Xpm*()
authorJon Trulson <jon@radscan.com>
Sat, 9 Jun 2018 00:28:23 +0000 (18:28 -0600)
committerJon Trulson <jon@radscan.com>
Thu, 14 Jun 2018 22:50:57 +0000 (16:50 -0600)
This is no longer needed on modern Motif's.

cde/lib/DtSvc/DtXpm/xpm.c
cde/programs/dtinfo/dtinfo/src/Other/WindowSystemMotif.C

index e91d6db0d6baa2b9398430dab3e0994db8cd5b0d..30bf477dd564ebccaa2e5afcfabb7679eae45305 100644 (file)
@@ -49,7 +49,7 @@ int _DtXpmCreatePixmapFromData(Display *display,
                               Pixmap *shapemask_return,
                               XpmAttributes *attributes)
 {
-    return XmeXpmCreatePixmapFromData(display, d, data,
+    return XpmCreatePixmapFromData(display, d, data,
                                      pixmap_return, shapemask_return,
                                      attributes);
 }
@@ -61,7 +61,7 @@ int _DtXpmReadFileToPixmap(Display *display,
                           Pixmap *shapemask_return,
                           XpmAttributes *attributes)
 {
-    return XmeXpmReadFileToPixmap(display, d, filename,
+    return XpmReadFileToPixmap(display, d, filename,
                                  pixmap_return, shapemask_return,
                                  attributes);
 }
@@ -72,7 +72,7 @@ int _DtXpmWriteFileFromPixmap(Display *display,
                              Pixmap shapemask,
                              XpmAttributes *attributes)
 {
-    return XmeXpmWriteFileFromPixmap(display, filename,
+    return XpmWriteFileFromPixmap(display, filename,
                                     pixmap, shapemask,
                                     attributes);
 }
@@ -83,7 +83,7 @@ int _DtXpmReadFileToImage(Display *display,
                          XImage **shapeimage_return,
                          XpmAttributes *attributes)
 {
-    return XmeXpmReadFileToImage(display, filename,
+    return XpmReadFileToImage(display, filename,
                                 image_return, shapeimage_return,
                                 attributes);
 }
@@ -94,12 +94,12 @@ int _DtXpmWriteFileFromImage(Display *display,
                             XImage *shapeimage,
                             XpmAttributes *attributes)
 {
-    return XmeXpmWriteFileFromImage(display, filename,
+    return XpmWriteFileFromImage(display, filename,
                                    image, shapeimage,
                                    attributes);
 }
 
 void _DtXpmFreeAttributes(XpmAttributes *attributes)
 {
-    XmeXpmFreeAttributes(attributes);
+    XpmFreeAttributes(attributes);
 }
index 7ebbc8d048e2f42c4bf5a4d0883700a9b1de17ae..92fc8cff453fb75b19e0f3a234c80c3d8ed5accb 100644 (file)
@@ -1115,7 +1115,7 @@ WindowSystem::default_pixmap (Dimension *width, Dimension *height)
        XpmAttributes xpm_attr ;
        xpm_attr.valuemask = 0 ;
        
-       XmeXpmCreatePixmapFromData(f_display,
+       XpmCreatePixmapFromData(f_display,
                                            XtWindow((Widget)toplevel()),
                                            (char**)graphic_unavailable_data,
                                            &temp_pixmap,
@@ -1175,7 +1175,7 @@ WindowSystem::detached_pixmap(Dimension *width, Dimension *height)
       XpmAttributes xpm_attr;
       xpm_attr.valuemask = 0 ;
 
-      int status = XmeXpmCreatePixmapFromData(f_display,
+      int status = XpmCreatePixmapFromData(f_display,
                                           XtWindow((Widget)toplevel()),
                                           (char**)detached_pixmap_data,
                                           &f_detached_pixmap,
@@ -1217,7 +1217,7 @@ WindowSystem::read_pixmap(const char *pname,
   status = xpm_lib().ReadFileToPixmap (f_display, XtWindow ((Widget)toplevel()),
                                fname, &pixmap, NULL, &xpm_attributes);
 #else
-  status = XmeXpmReadFileToPixmap (f_display, XtWindow ((Widget)toplevel()),
+  status = XpmReadFileToPixmap (f_display, XtWindow ((Widget)toplevel()),
                                fname, &pixmap, NULL, &xpm_attributes);
 #endif