4.5.8 release
Этот коммит содержится в:
родитель
a4a7fa73b5
Коммит
6cc8aba9bb
@ -5,7 +5,7 @@ AC_INIT(create_vcs)
|
|||||||
AC_CONFIG_HEADER(config.h)
|
AC_CONFIG_HEADER(config.h)
|
||||||
|
|
||||||
PACKAGE=mc
|
PACKAGE=mc
|
||||||
VERSION=4.5.6
|
VERSION=4.5.8
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
|
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
|
||||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
|
||||||
AC_SUBST(VERSION)
|
AC_SUBST(VERSION)
|
||||||
|
@ -291,3 +291,36 @@ gicon_get_icon_for_file (file_entry *fe)
|
|||||||
{
|
{
|
||||||
return gicon_get_icon_for_file_speed (fe, TRUE);
|
return gicon_get_icon_for_file_speed (fe, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typedef lookup_name_closure_t {
|
||||||
|
char *name;
|
||||||
|
void *image;
|
||||||
|
};
|
||||||
|
|
||||||
|
void
|
||||||
|
search_image (gpointer key, gpointer value, gpointer user_data)
|
||||||
|
{
|
||||||
|
lookup_name_closure_t *closure = user_data;
|
||||||
|
|
||||||
|
if (value == closure->image)
|
||||||
|
closure->name = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the file name that maps to this given GdkImlibImage
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
char *
|
||||||
|
gicon_image_to_name (GdkImlibImage *image)
|
||||||
|
{
|
||||||
|
lookup_name_closure_t closure;
|
||||||
|
|
||||||
|
closure.image = image;
|
||||||
|
closure.name = NULL;
|
||||||
|
|
||||||
|
g_hash_table_foreach (icon_hash, check_key, &search_image, &closure);
|
||||||
|
if (closure.name == NULL)
|
||||||
|
return g_strdup (ICONDIR "i-regular.png");
|
||||||
|
|
||||||
|
return g_strdup (closure.name);
|
||||||
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user