Gtkmm-forge Digest, Vol 27, Issue 14

2008-08-18 Thread gtkmm-forge-request
Send Gtkmm-forge mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/gtkmm-forge or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach

Embed movie player using mplayer - How to execute mplayer (fork?)

2008-08-18 Thread Paulo Flabiano Smorigo
Hi everybody, How can I execute mplayer in my program? I tried using fork but didn't work... When I create a graphic app I need a different aproach? And to be more complicated I need a solution that works on linux and windows... :'( Thanks in advance... P. F. Smorigo

The width of a Label.

2008-08-18 Thread Chris Dams
Dear all, After I change the text of a Label I would like to know what the width of the Label is going to become. If I call the get_width() method it only gives the right width if the text is changed is such a way that the width does not change. If the width actually changes by modifying the text

Re: Embed movie player using mplayer - How to execute mplayer (fork?)

2008-08-18 Thread Jens Georg
How can I execute mplayer in my program? I tried using fork but didn't work... When I create a graphic app I need a different aproach? And to be more complicated I need a solution that works on linux and windows... :'( Glib provides an abstraction layer above the various OS process spawning

Re: Embed movie player using mplayer - How to execute mplayer (fork?)

2008-08-18 Thread Paulo Flabiano Smorigo
Hi Jens, I saw this method but I couldn't found any example of use... I'm trying to implement using the api but it's hard to do so... Anyone here have and example of a Spawning Processes use? Thanks! P.F.Smorigo On Mon, Aug 18, 2008 at 10:47, Jens Georg [EMAIL PROTECTED] wrote: How can I

Re: The width of a Label.

2008-08-18 Thread Milosz Derezynski
This is basically the TreeView problem, namely so that TreeView, in order to determine certain drawing parameters, needs to make the cells actually render the text they are going to finally display in order for them to be able to provide the required size. What you would need to do is to create a

Re: Embed movie player using mplayer - How to execute mplayer (fork?)

2008-08-18 Thread Paulo Flabiano Smorigo
Hi again, I put the function spawn in my program but he gives me a No such file or directory error. I check the file and the path is right. The code: void Player::play(int wid) { int in_fd, out_fd; sprintf(command, mplayer -quiet -slave -idle -wid %d /home/test.avi, wid);

Re: Embed movie player using mplayer - How to execute mplayer (fork?)

2008-08-18 Thread Chris Wilson
Sorry Paulo, I sent reply to one, first. One quick gotcha is that argv contains a vector of all the command options. These are typically separated by spaces when typed on the command line. However, your example has the whole command as one option. So put the wid to a std::string, widstring, and