27 |
|
|
28 |
|
|
29 |
GHashTable *Gimages = NULL; |
GHashTable *Gimages = NULL; |
30 |
|
GHashTable *Ganimationpath = NULL; |
31 |
|
|
32 |
/*GdkPixbuf *GDirIcone, *GFileIcone, *GCDIcone, *GAudioIcone, *GCDRWIcone, *GCDpetiteIcone, |
/*GdkPixbuf *GDirIcone, *GFileIcone, *GCDIcone, *GAudioIcone, *GCDRWIcone, *GCDpetiteIcone, |
33 |
*GCDRWpetiteIcone, *GpetiteGraver, *GGraver, *GISOpetiteIcone, *GEraseCdrw, *GFileImage, |
*GCDRWpetiteIcone, *GpetiteGraver, *GGraver, *GISOpetiteIcone, *GEraseCdrw, *GFileImage, |
35 |
*GMenuAudio = NULL, *GMenuData = NULL, *GMenuCopy = NULL, *GMenuOther = NULL, *GMenuDvd = NULL;*/ |
*GMenuAudio = NULL, *GMenuData = NULL, *GMenuCopy = NULL, *GMenuOther = NULL, *GMenuDvd = NULL;*/ |
36 |
|
|
37 |
Timages Lotherimages[] = { |
Timages Lotherimages[] = { |
38 |
{ "DirIcon", "directory icon" }, |
{ "DirIcon", "directory icon", _IMG_PNG }, |
39 |
{ "FileIcon", "file icon" }, |
{ "FileIcon", "file icon", _IMG_PNG }, |
40 |
{ "FileImage", "file image" }, |
{ "FileImage", "file image", _IMG_PNG }, |
41 |
{ "CDIcon", "cd icon" }, |
{ "CDIcon", "cd icon", _IMG_PNG }, |
42 |
{ "AudioIcon", "audio icon" }, |
{ "AudioIcon", "audio icon", _IMG_PNG }, |
43 |
{ "CDRWIcon", "cdrw icon" }, |
{ "CDRWIcon", "cdrw icon", _IMG_PNG }, |
44 |
{ "CDRWsmallIcon", "cdrw small icon" }, |
{ "CDRWsmallIcon", "cdrw small icon", _IMG_PNG }, |
45 |
{ "DVDsmallIcon", "dvd small icon" }, |
{ "DVDsmallIcon", "dvd small icon", _IMG_PNG }, |
46 |
{ "DVDRWsmallIcon", "dvdrw small icon" }, |
{ "DVDRWsmallIcon", "dvdrw small icon", _IMG_PNG }, |
47 |
{ "CDsmallIcon", "cd small icon" }, |
{ "CDsmallIcon", "cd small icon", _IMG_PNG }, |
48 |
{ "ISOsmallIcon", "iso small icon" }, |
{ "ISOsmallIcon", "iso small icon", _IMG_PNG }, |
49 |
{ "BurnsmallIcon", "burn small icon" }, |
{ "BurnsmallIcon", "burn small icon", _IMG_PNG }, |
50 |
{ "BurnIcon", "burn icon" }, |
{ "BurnIcon", "burn icon", _IMG_PNG }, |
51 |
{ "EraseCDRWIcon", "erase cdrw icon" }, |
{ "EraseCDRWIcon", "erase cdrw icon", _IMG_PNG }, |
52 |
{ "CharsetSmallIcon", "charset small icon" }, |
{ "CharsetSmallIcon", "charset small icon", _IMG_PNG }, |
53 |
{ "OKIcon", "ok icon" }, |
{ "OKIcon", "ok icon", _IMG_PNG }, |
54 |
{ "BADIcon", "bad icon" }, |
{ "BADIcon", "bad icon", _IMG_PNG }, |
55 |
{ "WARNIcon", "warning icon" }, |
{ "WARNIcon", "warning icon", _IMG_PNG }, |
56 |
{ "Themes", "theme icon" }, |
{ "Themes", "theme icon", _IMG_PNG }, |
57 |
|
{ "Working", "graveman animation", _IMG_MNG }, |
58 |
{ NULL } |
{ NULL } |
59 |
}; |
}; |
60 |
|
|
61 |
Timages Lmenuimages[] = { |
Timages Lmenuimages[] = { |
62 |
{ "Menu-Audio-", "menu audio icon" }, |
{ "Menu-Audio-", "menu audio icon", _IMG_PNG }, |
63 |
{ "Menu-Data-", "menu data icon" }, |
{ "Menu-Data-", "menu data icon", _IMG_PNG }, |
64 |
{ "Menu-Dvd-", "menu dvd icon" }, |
{ "Menu-Dvd-", "menu dvd icon", _IMG_PNG }, |
65 |
{ "Menu-Copy-", "menu copy icon" }, |
{ "Menu-Copy-", "menu copy icon", _IMG_PNG }, |
66 |
{ "Menu-Other-", "menu other icon" }, |
{ "Menu-Other-", "menu other icon", _IMG_PNG }, |
67 |
{ NULL } |
{ NULL } |
68 |
}; |
}; |
69 |
|
|
78 |
if (!Limagespath) return FALSE; |
if (!Limagespath) return FALSE; |
79 |
|
|
80 |
Gimages = _hash(); |
Gimages = _hash(); |
81 |
|
Ganimationpath = _hash(); |
82 |
|
|
83 |
for (Lcurimage = Lotherimages; Lcurimage->code; Lcurimage++) { |
for (Lcurimage = Lotherimages; Lcurimage->code; Lcurimage++) { |
84 |
Lpath = g_hash_table_lookup(Limagespath, Lcurimage->code); |
Lpath = g_hash_table_lookup(Limagespath, Lcurimage->code); |
85 |
if (!Lpath) continue; |
if (!Lpath) continue; |
86 |
g_hash_table_insert(Gimages, Lcurimage->code, gdk_pixbuf_new_from_file((const gchar *)Lpath, NULL)); |
if (Lcurimage->type == _IMG_PNG) { |
87 |
|
g_hash_table_insert(Gimages, Lcurimage->code, gdk_pixbuf_new_from_file((const gchar *)Lpath, NULL)); |
88 |
|
g_free(Lpath); |
89 |
|
} else { |
90 |
|
g_hash_table_insert(Ganimationpath, Lcurimage->code, Lpath); |
91 |
|
} |
92 |
Laumoinsun = TRUE; |
Laumoinsun = TRUE; |
|
|
|
|
g_free(Lpath); |
|
93 |
} |
} |
94 |
|
|
95 |
g_hash_table_destroy(Limagespath); |
g_hash_table_destroy(Limagespath); |
101 |
return (GdkPixbuf *) g_hash_table_lookup(Gimages, Aident); |
return (GdkPixbuf *) g_hash_table_lookup(Gimages, Aident); |
102 |
} |
} |
103 |
|
|
104 |
|
gchar *get_animation(gchar *Aident) |
105 |
|
{ |
106 |
|
return (gchar *) g_hash_table_lookup(Ganimationpath, Aident); |
107 |
|
} |
108 |
|
|
109 |
gboolean load_menu_images(gchar *Lquel) { |
gboolean load_menu_images(gchar *Lquel) { |
110 |
Timages *Lcurimages; |
Timages *Lcurimages; |
111 |
GdkPixbuf *Limg; |
GdkPixbuf *Limg; |