Use PNG format for volume control icons on Windows

This commit is contained in:
François Grisez 2015-08-04 16:08:25 +02:00
parent c29def8492
commit 8b3d28af54
7 changed files with 22 additions and 16 deletions

View file

@ -2124,17 +2124,6 @@ int main(int argc, char *argv[]){
/*for pulseaudio:*/
g_setenv("PULSE_PROP_media.role", "phone", TRUE);
#endif
/* Add the data directory of Linphone to XDG_DATA_DIRS to enable GTK+ to find
the Linphone specific icons */
tmp = g_getenv("XDG_DATA_DIRS");
if(tmp && strlen(tmp) > 0) {
char *xdg_data_dirs = g_strdup_printf("%s:%s", tmp, PACKAGE_DATA_DIR "/linphone");
g_setenv("XDG_DATA_DIRS", xdg_data_dirs, TRUE);
g_free(xdg_data_dirs);
} else {
g_setenv("XDG_DATA_DIRS", PACKAGE_DATA_DIR "/linphone", FALSE);
}
lang=linphone_gtk_get_lang(config_file);
if (lang == NULL || lang[0]=='\0'){

View file

@ -20,7 +20,7 @@
#
############################################################################
set(ICONS_INSTALL_DIR ${PACKAGE_DATA_DIR}/linphone/icons/hicolor)
set(ICONS_INSTALL_DIR ${PACKAGE_DATA_DIR}/icons/hicolor)
file(GLOB PIXMAPS "*.png" "linphone.icns")
@ -37,7 +37,15 @@ install(FILES svg/linphone-micro-muted.svg
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ
)
install(FILES linphone-micro-muted.png
linphone-speaker-muted.png
linphone-micro-enabled.png
linphone-speaker-enabled.png
DESTINATION ${ICONS_INSTALL_DIR}/48x48/status
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ
)
install(FILES linphone.png
DESTINATION ${PACKAGE_DATA_DIR}/icons/hicolor/48x48/apps
DESTINATION ${ICONS_INSTALL_DIR}/48x48/apps
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)

View file

@ -17,12 +17,21 @@ dist_pixmap_DATA= \
dialer.png \
notok.png
appicondir=$(datadir)/icons/hicolor/48x48/apps
dist_appicon_DATA= linphone.png
iconsdir=$(datadir)/icons/hicolor
appiconsdir=$(iconsdir)/48x48/apps
dist_appicons_DATA= linphone.png
statusiconsdir=$(datadir)/linphone/icons/hicolor/scalable/status
sacalable-status-iconsdir=$(iconsdir)/scalable/status
dist_statusicons_DATA= \
svg/linphone-micro-muted.svg \
svg/linphone-speaker-muted.svg \
svg/linphone-micro-enabled.svg \
svg/linphone-speaker-enabled.svg
status-iconsdir=$(iconsdir)/48x48/status
dist_status-icons_DATA= \
svg/linphone-micro-muted.png \
svg/linphone-speaker-muted.png \
svg/linphone-micro-enabled.png \
svg/linphone-speaker-enabled.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB