Files
evolution/data/CMakeLists.txt
Milan Crha 74e097a98a Make it possible to change theme for text-highlight module
Since now, users can change theme being used by the text-highlight module,
not being forced to use a hard-coded theme in the code. First of all,
figure out which themes are installed. It's done with command:

   $ highlight --list-scripts=themes

Pick one, say "editor-vim-dark" (supposing it's installed), and execute:

   $ gsettings set org.gnome.evolution.text-highlight theme edit-vim-dark

And the next time the text-highlight will be called, like when changing the used
format with right-click in the body->Format As->..., the changed theme will
be used. In case the value being set in the GSettings is no longer valid,
like when the theme is not available or had been uninstalled, there will be
no formatting in the message content at all and evolution's console may
contain an error message from highlight, like this one:

   highlight: cannot open themes/unknown.theme: No such file or directory
2017-06-29 12:49:45 +02:00

85 lines
2.5 KiB
CMake

set(filedeps)
set(autostartdir ${SYSCONF_INSTALL_DIR}/xdg/autostart)
set(desktopdir ${SHARE_INSTALL_PREFIX}/applications)
set(themedir ${privdatadir}/theme)
configure_file(evolution.desktop.in.in
evolution.desktop.in
@ONLY
)
intltool_merge(${CMAKE_CURRENT_BINARY_DIR}/evolution.desktop.in evolution.desktop --desktop-style --utf8)
list(APPEND filedeps ${CMAKE_CURRENT_BINARY_DIR}/evolution.desktop)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/evolution.desktop
DESTINATION ${desktopdir}
)
configure_file(evolution-alarm-notify.desktop.in.in
evolution-alarm-notify.desktop.in
@ONLY
)
intltool_merge(${CMAKE_CURRENT_BINARY_DIR}/evolution-alarm-notify.desktop.in evolution-alarm-notify.desktop --desktop-style --utf8)
list(APPEND filedeps ${CMAKE_CURRENT_BINARY_DIR}/evolution-alarm-notify.desktop)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/evolution-alarm-notify.desktop
DESTINATION ${autostartdir}
)
install(FILES webview.css
webview-print.css
DESTINATION ${themedir}
)
set(SCHEMAS
org.gnome.evolution.gschema.xml
org.gnome.evolution.addressbook.gschema.xml
org.gnome.evolution.calendar.gschema.xml
org.gnome.evolution.importer.gschema.xml
org.gnome.evolution.mail.gschema.xml
org.gnome.evolution.shell.gschema.xml
org.gnome.evolution.bogofilter.gschema.xml
org.gnome.evolution.spamassassin.gschema.xml
org.gnome.evolution.text-highlight.gschema.xml
org.gnome.evolution.plugin.attachment-reminder.gschema.xml
org.gnome.evolution.plugin.autocontacts.gschema.xml
org.gnome.evolution.plugin.email-custom-header.gschema.xml
org.gnome.evolution.plugin.external-editor.gschema.xml
org.gnome.evolution.plugin.face-picture.gschema.xml
org.gnome.evolution.plugin.itip.gschema.xml
org.gnome.evolution.plugin.mail-notification.gschema.xml
org.gnome.evolution.plugin.prefer-plain.gschema.xml
org.gnome.evolution.plugin.publish-calendar.gschema.xml
org.gnome.evolution.plugin.templates.gschema.xml
)
set(BUILT_SCHEMAS)
foreach(_schema IN LISTS SCHEMAS)
intltool_merge(${_schema}.in ${_schema} --no-translations --xml-style --utf8)
list(APPEND BUILT_SCHEMAS ${CMAKE_CURRENT_BINARY_DIR}/${_schema})
endforeach(_schema)
add_custom_command(OUTPUT gschemas.compiled
COMMAND ${GLIB_COMPILE_SCHEMAS} .
)
add_custom_target(data-files ALL
DEPENDS gschemas.compiled
${filedeps}
)
add_gsettings_schemas(data-files ${BUILT_SCHEMAS})
install(FILES evolution.convert
DESTINATION ${SHARE_INSTALL_PREFIX}/GConf/gsettings
)
add_subdirectory(icons)
add_subdirectory(images)
add_subdirectory(sounds)
add_subdirectory(ui)
add_subdirectory(views)