mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 21:06:52 +03:00
44a1b32eeb
* gdesktop.c: Moved the old DnD cruft to olddnd.c to keep it there for reference purposes. * gmetadata.c: Removed the gmeta_get_icon_for_file() function, as it is obsoleted by gicon_get_icon_for_file(). * gdesktop.c (desktop_icon_info_new): Made it use gicon_get_icon_for_file(). * gdesktop-icon.c (set_icon): Now we handle things internally using an imlib image, not a filename. (desktop_icon_new): Now takes an imlib image for the icon instead of a filename. (desktop_icon_set_icon): Likewise.
22 lines
586 B
C
22 lines
586 B
C
/* Convenience functions for metadata handling in the MIdnight Commander
|
|
*
|
|
* Copyright (C) 1998 The Free Software Foundation
|
|
*
|
|
* Author: Federico Mena <federico@nuclecu.unam.mx>
|
|
*/
|
|
|
|
#ifndef GMETADATA_H
|
|
#define GMETADATA_H
|
|
|
|
|
|
/* Returns the coordinates of the icon corresponding to the specified file. If no position
|
|
* has been set, returns FALSE. Else it returns TRUE and sets the *x and *y values.
|
|
*/
|
|
int gmeta_get_icon_pos (char *filename, int *x, int *y);
|
|
|
|
/* Saves the icon position for the specified file */
|
|
void gmeta_set_icon_pos (char *filename, int x, int y);
|
|
|
|
|
|
#endif
|