all repos — tint2 @ c93626517223cad4412379d78aed76d9a939e34c

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

*add* call gtk-update-cache on install

git-svn-id: http://tint2.googlecode.com/svn/trunk@587 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

c93626517223cad4412379d78aed76d9a939e34c

parent

b0e308e90951fd1db7fab2e28588afa6949f432c

2 files changed, 10 insertions(+), 5 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -65,16 +65,16 @@ set( SOURCES ${SOURCES} src/battery/battery.c )

add_definitions( -DENABLE_BATTERY ) endif( ENABLE_BATTERY ) +set( MANDIR share/man CACHE PATH "Directory for man pages" ) +set( DATADIR share CACHE PATH "Directory for shared data" ) +set( SYSCONFDIR /etc CACHE PATH "Directory for configuration files" ) +set( DOCDIR share/doc/tint2 CACHE PATH "Directory for documentation files" ) + if( ENABLE_TINT2CONF ) add_definitions( -DHAVE_VERSION_H ) add_subdirectory( src/tint2conf ) add_dependencies( tint2conf version ) endif( ENABLE_TINT2CONF ) - -set( MANDIR share/man CACHE PATH "Directory for man pages" ) -set( DATADIR share CACHE PATH "Directory for shared data" ) -set( SYSCONFDIR /etc CACHE PATH "Directory for configuration files" ) -set( DOCDIR share/doc/tint2 CACHE PATH "Directory for documentation files" ) add_custom_target( version ALL "${PROJECT_SOURCE_DIR}/get_svnrev.sh" "\"${PROJECT_SOURCE_DIR}\"" )
M src/tint2conf/CMakeLists.txtsrc/tint2conf/CMakeLists.txt

@@ -35,6 +35,10 @@ ${IMLIB2_LIBRARIES}

${GTHREAD2_LIBRARIES} ${GTK2_LIBRARIES} ) +if ( NOT DATADIR ) + set( DATADIR share ) +endif( NOT DATADIR ) + add_definitions( -DINSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" ) set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS "-Wall -pthread" ) set_target_properties( tint2conf PROPERTIES LINK_FLAGS "-pthread" )

@@ -43,3 +47,4 @@ install( TARGETS tint2conf DESTINATION bin )

install( PROGRAMS tintwizard.py DESTINATION bin ) install( FILES taskbar.svg DESTINATION share/icons/hicolor/scalable/apps ) install( FILES tint2conf.desktop DESTINATION share/applications ) +install( CODE "execute_process(COMMAND gtk-update-icon-cache -f -t ${DATADIR}/icons/hicolor WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})" )