forked from enlightenment/enlightenment
fix all e17 .desktop files to not break spec, rename profile icons to be unique, make wizard and profile config load new icons, also clean up some small leaks in wizard
SVN revision: 76284
This commit is contained in:
parent
94581d8ee2
commit
d6c7397c3d
|
@ -4,13 +4,13 @@ EET_EET = @eet_eet@
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
profile.desktop \
|
profile.desktop \
|
||||||
icon.png \
|
enlightenment-default.png \
|
||||||
e.src
|
e.src
|
||||||
|
|
||||||
filesdir = $(datadir)/enlightenment/data/config/default
|
filesdir = $(datadir)/enlightenment/data/config/default
|
||||||
files_DATA = \
|
files_DATA = \
|
||||||
profile.desktop \
|
profile.desktop \
|
||||||
icon.png \
|
enlightenment-default.png \
|
||||||
e.cfg
|
e.cfg
|
||||||
|
|
||||||
SUFFIXES = .cfg
|
SUFFIXES = .cfg
|
||||||
|
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
|
@ -12,7 +12,7 @@ Name[zh_CN]=默认
|
||||||
Name[pt]=Predefinições
|
Name[pt]=Predefinições
|
||||||
Name[tr]=Öntanımlı
|
Name[tr]=Öntanımlı
|
||||||
Name[ko]=기본
|
Name[ko]=기본
|
||||||
Icon=icon.png
|
Icon=enlightenment-default
|
||||||
Comment=Select this to begin the initial setup again.
|
Comment=Select this to begin the initial setup again.
|
||||||
Comment[ru]=Выберите это для<br>запуска инициализации настроек (сброс).
|
Comment[ru]=Выберите это для<br>запуска инициализации настроек (сброс).
|
||||||
Comment[cs]=Vyberte pro znovuspuštění<br>tohoto průvodce.
|
Comment[cs]=Vyberte pro znovuspuštění<br>tohoto průvodce.
|
||||||
|
|
|
@ -4,7 +4,7 @@ EET_EET = @eet_eet@
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
profile.desktop \
|
profile.desktop \
|
||||||
icon.png \
|
enlightenment-mobile.png \
|
||||||
e.src \
|
e.src \
|
||||||
module.battery.src \
|
module.battery.src \
|
||||||
module.illume-home.src \
|
module.illume-home.src \
|
||||||
|
@ -17,7 +17,7 @@ EXTRA_DIST = \
|
||||||
filesdir = $(datadir)/enlightenment/data/config/mobile
|
filesdir = $(datadir)/enlightenment/data/config/mobile
|
||||||
files_DATA = \
|
files_DATA = \
|
||||||
profile.desktop \
|
profile.desktop \
|
||||||
icon.png \
|
enlightenment-mobile.png \
|
||||||
e.cfg \
|
e.cfg \
|
||||||
module.battery.cfg \
|
module.battery.cfg \
|
||||||
module.illume-home.cfg \
|
module.illume-home.cfg \
|
||||||
|
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
@ -4,7 +4,7 @@ Name=Mobile
|
||||||
Name[fr]=Écran tactile
|
Name[fr]=Écran tactile
|
||||||
Name[pt]=Ecrã tátil
|
Name[pt]=Ecrã tátil
|
||||||
Name[ko]=터치스크린
|
Name[ko]=터치스크린
|
||||||
Icon=icon.png
|
Icon=enlightenment-mobile
|
||||||
Comment=EXPERIMENTAL!<br>Configuration set up to work best with touchscreen<br>phones, tablets and similar devices.
|
Comment=EXPERIMENTAL!<br>Configuration set up to work best with touchscreen<br>phones, tablets and similar devices.
|
||||||
Comment[fr]=EXPÉRIMENTAL !<br>Configuration adaptée aux écrans tactiles<br>des téléphones, tablettes et apparentés.
|
Comment[fr]=EXPÉRIMENTAL !<br>Configuration adaptée aux écrans tactiles<br>des téléphones, tablettes et apparentés.
|
||||||
Comment[it]=SPERIMENTALE!<br>Configurazione adatta per l'uso in smartphone<br>con interfaccia tattile, tablets e similari.
|
Comment[it]=SPERIMENTALE!<br>Configurazione adatta per l'uso in smartphone<br>con interfaccia tattile, tablets e similari.
|
||||||
|
|
|
@ -4,7 +4,7 @@ EET_EET = @eet_eet@
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
profile.desktop \
|
profile.desktop \
|
||||||
icon.png \
|
enlightenment-standard.png \
|
||||||
e.src \
|
e.src \
|
||||||
module.battery.src \
|
module.battery.src \
|
||||||
module.cpufreq.src \
|
module.cpufreq.src \
|
||||||
|
@ -19,7 +19,7 @@ EXTRA_DIST = \
|
||||||
filesdir = $(datadir)/enlightenment/data/config/standard
|
filesdir = $(datadir)/enlightenment/data/config/standard
|
||||||
files_DATA = \
|
files_DATA = \
|
||||||
profile.desktop \
|
profile.desktop \
|
||||||
icon.png \
|
enlightenment-standard.png \
|
||||||
e.cfg \
|
e.cfg \
|
||||||
module.battery.cfg \
|
module.battery.cfg \
|
||||||
module.cpufreq.cfg \
|
module.cpufreq.cfg \
|
||||||
|
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
@ -5,7 +5,7 @@ Name[fr]=Ordinateur (Enlightenment standard)
|
||||||
Name[it]=Computer (Enlightenment standard)
|
Name[it]=Computer (Enlightenment standard)
|
||||||
Name[pt]=Computador (Enlightenment padrão)
|
Name[pt]=Computador (Enlightenment padrão)
|
||||||
Name[ko]=컴퓨터 (표준 Enlightenment)
|
Name[ko]=컴퓨터 (표준 Enlightenment)
|
||||||
Icon=icon.png
|
Icon=enlightenment-standard
|
||||||
Comment=Configuration for devices with keyboards and mice<br>like your average PC Desktop, Laptop or Netbook<br>with Enlightenment's traditional keyboard bindings<br>and mouse controls.
|
Comment=Configuration for devices with keyboards and mice<br>like your average PC Desktop, Laptop or Netbook<br>with Enlightenment's traditional keyboard bindings<br>and mouse controls.
|
||||||
Comment[fr]=Configuration pour les machines avec clavier et<br>souris comme les PC de bureau et les portables,<br>offrant raccourcis et contrôles traditionnels.
|
Comment[fr]=Configuration pour les machines avec clavier et<br>souris comme les PC de bureau et les portables,<br>offrant raccourcis et contrôles traditionnels.
|
||||||
Comment[it]=Configurazione per macchine con tastiera e mouse,<br>come i normali computer fissi e portatili,<br>con le tradizionali associazioni di tasti e controlli<br>del mouse.
|
Comment[it]=Configurazione per macchine con tastiera e mouse,<br>come i normali computer fissi e portatili,<br>con le tradizionali associazioni di tasti e controlli<br>del mouse.
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Enlightenment File Manager
|
Name=Enlightenment File Manager
|
||||||
Name[it]=Filemanager di Enlightenment
|
Name[it]=Filemanager di Enlightenment
|
||||||
Name[pt]=Gestor de ficheiros do Enlightenment
|
Name[pt]=Gestor de ficheiros do Enlightenment
|
||||||
Generic=File Manager
|
|
||||||
GenericName[pt]=Gestor de ficheiros
|
|
||||||
Comment=File Manager provided by Enlightenment
|
Comment=File Manager provided by Enlightenment
|
||||||
Comment[it]=Il filemanager fornito da Enlightenment
|
Comment[it]=Il filemanager fornito da Enlightenment
|
||||||
Comment[pt]=Gestor de ficheiros para o Enlightenment
|
Comment[pt]=Gestor de ficheiros para o Enlightenment
|
||||||
Exec=enlightenment_filemanager %U
|
Exec=enlightenment_filemanager %U
|
||||||
Icon=system-file-manager
|
Icon=system-file-manager
|
||||||
Categories=FileManager;Utility;Core;Enlightenment;
|
Categories=FileManager;Utility;Core;System;FileTools
|
||||||
Terminal=false
|
Terminal=false
|
||||||
StartupNotify=false
|
StartupNotify=false
|
||||||
StartupWMClass=e_fm
|
StartupWMClass=e_fm
|
||||||
OnlyShowIn=Enlightenment;
|
OnlyShowIn=Enlightenment;
|
||||||
MimeType=x-directory/normal;inode/directory;
|
MimeType=inode/directory;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Desktop
|
Name=Desktop
|
||||||
Name[fr]=Bureau
|
Name[fr]=Bureau
|
||||||
Name[pt]=Área de trabalho
|
Name[pt]=Área de trabalho
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Home
|
Name=Home
|
||||||
Name[pt]=Pasta pessoal
|
Name[pt]=Pasta pessoal
|
||||||
Comment=The Directory containing all your personal files
|
Comment=The Directory containing all your personal files
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Root
|
Name=Root
|
||||||
Comment=The Root Filesystem base
|
Comment=The Root Filesystem base
|
||||||
Comment[it]=Il filesystem principale
|
Comment[it]=Il filesystem principale
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Temp
|
Name=Temp
|
||||||
Name[pt]=Temporários
|
Name[pt]=Temporários
|
||||||
Comment=Temporary files
|
Comment=Temporary files
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Enlightenment
|
Name=Enlightenment
|
||||||
Name[ru]=Enlightenment
|
Name[ru]=Enlightenment
|
||||||
Name[el]=Enlightenment
|
Name[el]=Enlightenment
|
||||||
|
@ -14,7 +13,7 @@ Comment[it]=Accedi con Enlightenment (Versione @VERSION@)
|
||||||
Comment[pt]=Iniciar sessão no Enlightenment (Versão @VERSION@)
|
Comment[pt]=Iniciar sessão no Enlightenment (Versão @VERSION@)
|
||||||
Comment[tr]=Enlightenment kullanarak giriş yaın (Version @VERSION@)
|
Comment[tr]=Enlightenment kullanarak giriş yaın (Version @VERSION@)
|
||||||
Comment[ko]=Enlightenment 로그인(버전 @VERSION@)
|
Comment[ko]=Enlightenment 로그인(버전 @VERSION@)
|
||||||
Type=XSession
|
Type=Application
|
||||||
Icon=@prefix@/share/enlightenment/data/images/enlightenment.png
|
Icon=@prefix@/share/enlightenment/data/images/enlightenment.png
|
||||||
Exec=@prefix@/bin/enlightenment_start
|
Exec=@prefix@/bin/enlightenment_start
|
||||||
TryExec=@prefix@/bin/enlightenment_start
|
TryExec=@prefix@/bin/enlightenment_start
|
||||||
|
|
|
@ -198,7 +198,7 @@ _ilist_fill(E_Config_Dialog_Data *cfdata)
|
||||||
if (!desk)
|
if (!desk)
|
||||||
{
|
{
|
||||||
e_prefix_data_snprintf(buf, sizeof(buf), "data/config/%s/", prof);
|
e_prefix_data_snprintf(buf, sizeof(buf), "data/config/%s/", prof);
|
||||||
pdir = strdup(buf);
|
pdir = strdupa(buf);
|
||||||
if (pdir)
|
if (pdir)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), "%s/profile.desktop", pdir);
|
snprintf(buf, sizeof(buf), "%s/profile.desktop", pdir);
|
||||||
|
@ -211,12 +211,16 @@ _ilist_fill(E_Config_Dialog_Data *cfdata)
|
||||||
if (pdir)
|
if (pdir)
|
||||||
snprintf(buf, sizeof(buf), "%s/icon.edj", pdir);
|
snprintf(buf, sizeof(buf), "%s/icon.edj", pdir);
|
||||||
if ((desk) && (desk->icon) && (pdir))
|
if ((desk) && (desk->icon) && (pdir))
|
||||||
snprintf(buf, sizeof(buf), "%s/%s", pdir, desk->icon);
|
{
|
||||||
|
if (eina_str_has_extension(desk->icon, "png"))
|
||||||
|
snprintf(buf, sizeof(buf), "%s/%s", pdir, desk->icon);
|
||||||
|
else
|
||||||
|
snprintf(buf, sizeof(buf), "%s/%s.png", pdir, desk->icon);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
e_prefix_data_concat_static(buf, "data/images/enlightenment.png");
|
e_prefix_data_concat_static(buf, "data/images/enlightenment.png");
|
||||||
ic = e_util_icon_add(buf, evas);
|
ic = e_util_icon_add(buf, evas);
|
||||||
e_widget_ilist_append(cfdata->o_list, ic, label, _ilist_cb_selected, cfdata, prof);
|
e_widget_ilist_append(cfdata->o_list, ic, label, _ilist_cb_selected, cfdata, prof);
|
||||||
if (pdir) free(pdir);
|
|
||||||
free(prof);
|
free(prof);
|
||||||
if (desk) efreet_desktop_free(desk);
|
if (desk) efreet_desktop_free(desk);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Home
|
Name=Home
|
||||||
Name[pt]=Pasta pessoal
|
Name[pt]=Pasta pessoal
|
||||||
Comment=The Directory containing all your personal files
|
Comment=The Directory containing all your personal files
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Root
|
Name=Root
|
||||||
Comment=The Root Filesystem base
|
Comment=The Root Filesystem base
|
||||||
Comment[it]=Il filesystem principale
|
Comment[it]=Il filesystem principale
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Temp
|
Name=Temp
|
||||||
Name[pt]=Temporários
|
Name[pt]=Temporários
|
||||||
Comment=Temporary files
|
Comment=Temporary files
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=MPlayer
|
Name=MPlayer
|
||||||
GenericName=Movie Player
|
GenericName=Movie Player
|
||||||
|
@ -8,7 +7,7 @@ Comment=Watch movies and videos
|
||||||
Comment[it]=Per guardare filmati e video
|
Comment[it]=Per guardare filmati e video
|
||||||
Comment[pt]=Ver filmes e ouvir músicas
|
Comment[pt]=Ver filmes e ouvir músicas
|
||||||
Exec=mplayer %U
|
Exec=mplayer %U
|
||||||
Icon=video_player.png
|
Icon=video_player
|
||||||
StartupWMClass=MPlayer
|
StartupWMClass=MPlayer
|
||||||
Categories=Application;AudioVideo;Player;
|
Categories=AudioVideo;Player;
|
||||||
MimeType=application/mxf;application/ogg;application/ram;application/sdp;application/smil;application/smil+xml;application/vnd.ms-wpl;application/vnd.rn-realmedia;application/x-extension-m4a;application/x-extension-mp4;application/x-flac;application/x-flash-video;application/x-matroska;application/x-netshow-channel;application/x-ogg;application/x-quicktime-media-link;application/x-quicktimeplayer;application/x-shorten;application/x-smil;application/xspf+xml;audio/3gpp;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/midi;audio/mp4;audio/mpeg;audio/mpegurl;audio/ogg;audio/prs.sid;audio/vnd.rn-realaudio;audio/x-aiff;audio/x-ape;audio/x-flac;audio/x-gsm;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp3;audio/x-mpeg;audio/x-mpegurl;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-realaudio;audio/x-pn-realaudio-plugin;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-sbc;audio/x-scpls;audio/x-speex;audio/x-tta;audio/x-wav;audio/x-wavpack;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-xm;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/google-video-pointer;text/x-google-video-pointer;video/3gpp;video/dv;video/fli;video/flv;video/mp2t;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/ogg;video/quicktime;video/vivo;video/vnd.divx;video/vnd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-flv;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-ms-asf;video/x-ms-asx;video/x-msvideo;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg;video/x-totem-stream;x-content/video-dvd;x-content/video-vcd;x-content/video-svcd;
|
MimeType=application/mxf;application/ogg;application/ram;application/sdp;application/smil;application/smil+xml;application/vnd.ms-wpl;application/vnd.rn-realmedia;application/x-extension-m4a;application/x-extension-mp4;application/x-flac;application/x-flash-video;application/x-matroska;application/x-netshow-channel;application/x-ogg;application/x-quicktime-media-link;application/x-quicktimeplayer;application/x-shorten;application/x-smil;application/xspf+xml;audio/3gpp;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/midi;audio/mp4;audio/mpeg;audio/mpegurl;audio/ogg;audio/prs.sid;audio/vnd.rn-realaudio;audio/x-aiff;audio/x-ape;audio/x-flac;audio/x-gsm;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp3;audio/x-mpeg;audio/x-mpegurl;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-realaudio;audio/x-pn-realaudio-plugin;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-sbc;audio/x-scpls;audio/x-speex;audio/x-tta;audio/x-wav;audio/x-wavpack;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-xm;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/google-video-pointer;text/x-google-video-pointer;video/3gpp;video/dv;video/fli;video/flv;video/mp2t;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/ogg;video/quicktime;video/vivo;video/vnd.divx;video/vnd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-flv;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-ms-asf;video/x-ms-asx;video/x-msvideo;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg;video/x-totem-stream;x-content/video-dvd;x-content/video-vcd;x-content/video-svcd;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=XTerm
|
Name=XTerm
|
||||||
GenericName=Terminal
|
GenericName=Terminal
|
||||||
|
@ -7,6 +6,6 @@ Comment=Run commands in a shell
|
||||||
Comment[it]=Esegue comandi in una shell
|
Comment[it]=Esegue comandi in una shell
|
||||||
Comment[pt]=Execução de comandos na consola
|
Comment[pt]=Execução de comandos na consola
|
||||||
Exec=xterm
|
Exec=xterm
|
||||||
Icon=xterm.png
|
Icon=xterm
|
||||||
StartupWMClass=XTerm
|
StartupWMClass=XTerm
|
||||||
Categories=Utility;TerminalEmulator;
|
Categories=Utility;TerminalEmulator;System;
|
||||||
|
|
|
@ -9,16 +9,11 @@ static void
|
||||||
_profile_change(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
|
_profile_change(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
|
||||||
{
|
{
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
const char *dir;
|
char *dir;
|
||||||
Efreet_Desktop *desk = NULL;
|
Efreet_Desktop *desk = NULL;
|
||||||
|
|
||||||
e_prefix_data_snprintf(buf, sizeof(buf), "data/config/%s", profile);
|
e_prefix_data_snprintf(buf, sizeof(buf), "data/config/%s", profile);
|
||||||
dir = strdup(buf);
|
dir = strdupa(buf);
|
||||||
if (!dir)
|
|
||||||
{
|
|
||||||
e_widget_textblock_markup_set(textblock, _("Unknown"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
snprintf(buf, sizeof(buf), "%s/profile.desktop", dir);
|
snprintf(buf, sizeof(buf), "%s/profile.desktop", dir);
|
||||||
desk = efreet_desktop_new(buf);
|
desk = efreet_desktop_new(buf);
|
||||||
if (desk)
|
if (desk)
|
||||||
|
@ -88,12 +83,7 @@ wizard_page_show(E_Wizard_Page *pg)
|
||||||
free(prof);
|
free(prof);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
dir = strdup(buf);
|
dir = strdupa(buf);
|
||||||
if (!dir)
|
|
||||||
{
|
|
||||||
free(prof);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (!strcmp(prof, "standard")) sel = i;
|
if (!strcmp(prof, "standard")) sel = i;
|
||||||
snprintf(buf, sizeof(buf), "%s/profile.desktop", dir);
|
snprintf(buf, sizeof(buf), "%s/profile.desktop", dir);
|
||||||
desk = efreet_desktop_new(buf);
|
desk = efreet_desktop_new(buf);
|
||||||
|
@ -101,7 +91,12 @@ wizard_page_show(E_Wizard_Page *pg)
|
||||||
if ((desk) && (desk->name)) label = desk->name;
|
if ((desk) && (desk->name)) label = desk->name;
|
||||||
snprintf(buf, sizeof(buf), "%s/icon.edj", dir);
|
snprintf(buf, sizeof(buf), "%s/icon.edj", dir);
|
||||||
if ((desk) && (desk->icon))
|
if ((desk) && (desk->icon))
|
||||||
snprintf(buf, sizeof(buf), "%s/%s", dir, desk->icon);
|
{
|
||||||
|
if (eina_str_has_extension(desk->icon, "png"))
|
||||||
|
snprintf(buf, sizeof(buf), "%s/%s", dir, desk->icon);
|
||||||
|
else
|
||||||
|
snprintf(buf, sizeof(buf), "%s/%s.png", dir, desk->icon);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
e_prefix_data_concat_static(buf, "data/images/enlightenment.png");
|
e_prefix_data_concat_static(buf, "data/images/enlightenment.png");
|
||||||
ic = e_util_icon_add(buf, pg->evas);
|
ic = e_util_icon_add(buf, pg->evas);
|
||||||
|
|
Loading…
Reference in New Issue