Programming and Scripting :: XPM Icon Viewer



Quote (mikshaw @ Nov. 04 2007,17:13)
I guess I'm still not sure what you're getting at. Are you talking about this script here or only dfm?

Quote
I can already load any directory of xpm's via the XPM_viewer's menu
But this is the only purpose for dragging with this script, and likely will remain that way. The script is made for XPM image files themselves, and has no relationship to the applications associated with those files in dfm. The dfm application already has the tools necessary to deal with the connection between applications and icons. This script is intended to view your XPM files (xzgv doesn't support xpm) and optionally open up an editor for the selected icon. I have no intention of integrating it into a particular desktop environment.

No problem.....I saw the viewer as potentially a way to edit desktop icons that were dragged onto it, if it opened to the correct directory.

Ohhhhhh....i get it now =o)

Yeah, that's kind of an iffy thing. While it would be a handy thing to be able to do, I have a feeling that the code required would make the script much larger and potentially less stable (depending on how well it was implemented).

I *might* look into doing this just for the experience and education that would come from it, but don't expect it to definitely be done, and don't expect it to show up in DSL even if it is accomplished.

Funny, one of the icons that doesn't load is xpaint.xpm (perhaps it feels rejected)  :D

There's actually quite a few that don't load (going through dfm's icon directory).

The script loads only 32x32 pixmaps, but the xpaint pixmap is 32x30
Maybe I need to change it to less than or equal to 32 instead of exactly 32

EDIT: yep, that worked. Thanks for the report!

EDIT2: After making the change there are still 9 files in /usr/share/dfm/icons that are ignored by the script. Maybe there are some that have dimensions larger than 32

Quote (mikshaw @ Nov. 04 2007,21:19)
The script loads only 32x32 pixmaps, but the xpaint pixmap is 32x30
Maybe I need to change it to less than or equal to 32 instead of exactly 32

EDIT: yep, that worked. Thanks for the report!

EDIT2: After making the change there are still 9 files in /usr/share/dfm/icons that are ignored by the script. Maybe there are some that have dimensions larger than 32

I was experimenting, and found  by increasing the "xpm_size" (line 9),
all the files eventually load. (try xpm_size=50)

Next Page...
original here.