Reading XComposite Tutorial - GtkThumbnail
After reading the XComposite tutorial, I start to write a small widget to make thumbnail of a window. The original tutorial use QImage to show the thumbnail. My widget inherits GtkImage. Here is the code.
After reading the XComposite tutorial, I start to write a small widget to make thumbnail of a window. The original tutorial use QImage to show the thumbnail. My widget inherits GtkImage. Here is the code.
Posted by
momodalo
at
9:47 PM
0
comments

Recently, I want to embed a mplayer into my gtk program. I use the -wid option of mplayer to assign the parent X Window ID and draw the mplayer on a GtkDrawingArea. However, It still need some control widgets to control the mplayer. MPlayer provide the -input option to read input command from a file. The file could be a UNIX FIFO, so others can send command to mplayer through fifo. The command list is here. ( you can see it by type "mplayer -input cmdlist").
seek Float [Integer]I write a simple widget to embed mplayer and provide some require api to specified command. The project is named GtkEmbMPlayer. Here is the code for version 0.1.0
pause
loop Integer [Integer]
volume Float [Integer]
mute [Integer]
get_percent_pos
get_time_pos
get_time_length
Posted by
momodalo
at
9:12 PM
1 comments