mc/gnome/gicon.h
Miguel de Icaza a57560f5dd 1999-02-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gicon.c (gicon_get_filename_for_icon): Return const char *, this
	tells the user of this routine "you better not touch or free this
	you dofus".

	* gnome-file-property-dialog.c (apply_metadata_change): Always set
	the name of the icon to the new value, as the entry will always
	match the imlib image anyways (due to the fixes I did to const
	correctness).
	(generate_icon_sel): Do not free the value.  We do not own this
	return value.

	* gdesktop.c (is_mountable): NULL terminate string returned from
	readlink.  Yes guys, readlink does not NULL terminate things.
	(do_mount_umount): ditto.

	* gnome-file-property-dialog.c (init_metadata): ditto
1999-02-25 04:08:43 +00:00

24 lines
520 B
C

/* Icon loading support for the Midnight Commander
*
* Copyright (C) 1998-1999 The Free Software Foundation
*
* Authors: Miguel de Icaza <miguel@nuclecu.unam.mx>
* Federico Mena <federico@nuclecu.unam.mx>
*/
#ifndef GNOME_GICON_H
#define GNOME_GICON_H
#include <glib.h>
#include <gdk_imlib.h>
#include "dir.h"
void gicon_init (void);
GdkImlibImage *gicon_get_icon_for_file (char *directory, file_entry *fe, gboolean do_quick);
const char *gicon_get_filename_for_icon (GdkImlibImage *image);
#endif