superkaramba: added cmake rules for example files and create xcursor.so at build time.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/45/head
Michele Calgaro 2 years ago
parent da9cd0c056
commit eef19dd535
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -206,9 +206,9 @@ if ( BUILD_SUPERKARAMBA )
check_include_file( "sys/types.h" HAVE_SYS_TYPES_H ) check_include_file( "sys/types.h" HAVE_SYS_TYPES_H )
find_package( PythonLibs ) find_package( PythonLibs )
if( NOT PYTHONLIBS_FOUND ) if( NOT PYTHONLIBS_FOUND OR "${PYTHONLIBS_VERSION_STRING}" LESS "3" )
tde_message_fatal( "python is required, but was not found on your system" ) tde_message_fatal( "Python3 is required, but was not found on your system" )
endif( NOT PYTHONLIBS_FOUND ) endif( )
if( WITH_TDENEWSTUFF ) if( WITH_TDENEWSTUFF )
set( HAVE_TDENEWSTUFF 1 ) set( HAVE_TDENEWSTUFF 1 )

@ -10,6 +10,7 @@
################################################# #################################################
add_subdirectory( src ) add_subdirectory( src )
add_subdirectory( examples )
add_subdirectory( icons ) add_subdirectory( icons )
add_subdirectory( mimetypes ) add_subdirectory( mimetypes )

@ -0,0 +1,7 @@
add_subdirectory( globalMouse )
install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
DESTINATION ${DATA_INSTALL_DIR}/superkaramba/examples
PATTERN CMakeLists.txt EXCLUDE
)

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 305 B

@ -0,0 +1,11 @@
##### xcursor.so #######################
include_directories(
${PYTHON_INCLUDE_DIR}
)
tde_add_library( xcursor MODULE NO_LIBTOOL_FILE
SOURCES extension/xcursor.c
LINK ${PYTHON_LIBRARIES} X11
DESTINATION ${DATA_INSTALL_DIR}/superkaramba/examples/globalMouse
)

@ -19,7 +19,7 @@ INSTALLATION:
named build. This file needs to be copied in the same directory as the named build. This file needs to be copied in the same directory as the
eyes.theme and eyes.py file. eyes.theme and eyes.py file.
A precompiled xcursor.so file is included (Compiled on Mandrake 9.1). A precompiled xcursor.so file is included.
CHANGES: CHANGES:
* Moving the theme now works as it should. * Moving the theme now works as it should.

@ -5,10 +5,10 @@ def main():
version = '1.0', version = '1.0',
description = 'Determines the position of the X mouse cursor', description = 'Determines the position of the X mouse cursor',
ext_modules = [Extension('xcursor', ext_modules = [Extension('xcursor',
include_dirs = ['/usr/X11R6/include'], include_dirs = ['/usr/X11R6/include'],
libraries = ['X11'], libraries = ['X11'],
library_dirs = ['/usr/X11R6/lib'], library_dirs = ['/usr/X11R6/lib'],
sources = ['xcursor.c'])]) sources = ['xcursor.c'])])
if __name__ == "__main__": if __name__ == "__main__":
main() main()

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

@ -1,27 +1,36 @@
#!/bin/sh #!/bin/sh
themes=( themes="
"text/text.theme" autoHide/main.theme
"autoHide/main.theme" bar/bar.theme
"bar/bar.theme" change_interval/interval.theme
"graph/graph.theme" cleanbar/cleanbar.theme
"image/image.theme" control_management/mgmt.theme
"popupMenu/popupMenu.theme" disableRightClickMenu/disable_menu.theme
"taskBar/cleanbar/cleanbar.theme" globalMouse/eyes.theme
"richtext/richtext.theme" graph/graph.theme
"richtext/rtext.theme" image/image.theme
"globalMouse/eyes.theme" input_api/input_api.theme
"unicode/unicode.theme" input_example/input_example.theme
"mouseDrag/karmix/karmix.theme" mouseDrag/karmix.theme
"input_api/input_api.theme" mouseDrop/mousedrop.theme
"input_example/input_example.theme" openCloseTheme/1.theme
) openCloseTheme/2.theme
popupMenu/popupMenu.theme
richtext/richtext.theme
richtext/rtext.theme
service_group/service_group.theme
setIncomingData/1.theme
setIncomingData/2.theme
text/text.theme
unicode/unicode.theme
"
for theme in "${themes[@]}" for theme in $themes
do do
echo $theme echo $theme
dcop `dcop superkaramba* | head -n 1` default openTheme $PWD/$theme dcop `dcop superkaramba* | head -n 1` default openTheme $PWD/$theme
read a read a
dcop `dcop superkaramba* | head -n 1` default closeTheme `expr $theme : '.*/\(.*\)\.'` dcop `dcop superkaramba* | head -n 1` default closeTheme `expr $theme : '.*/\(.*\)\.'`
done done
#dcop `dcop superkaramba* | head -n 1` default quit #dcop `dcop superkaramba* | head -n 1` default quit

Loading…
Cancel
Save