mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
a57560f5dd
* 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
24 lines
520 B
C
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
|