Re: Gtkmm web front-end.

2013-07-31 Thread Murray Cumming
On Mon, 2013-07-29 at 02:33 -0700, sourav wrote: Hi, We have developed an application for an embedded device. Everythings runs fine until I encountered this irritating bug on the web frontend. -- we are running the web frontend also for the application and when a button is being clicked, on

Re: _CLASS_OPAQUE_REFCOUNTED - create method with arguments

2013-07-31 Thread Murray Cumming
On Tue, 2013-07-30 at 11:50 +0200, Marcin Kolny wrote: On 07/30/2013 11:46 AM, Marcin Kolny wrote: Hello, I'm going to create class, using _CLASS_OPAQUE_REFCOUNTED. Unfortunatelly, my new function has following signature: gst_memory_new_wrapped (GstMemoryFlags flags,

Re: Unit tests in GStreamermm 1.0

2013-07-31 Thread Murray Cumming
On Tue, 2013-07-30 at 23:44 +0200, Marcin Kolny wrote: Hello, I'm going to write a few unit tests for GStreamermm 1.0. Currently there are some test applications in repository, but they can't be run automatically. I've got an idea to plug an unittest framework(e.g. GTest) to project. What

Re: Gtkmm web front-end.

2013-07-31 Thread L. D. James
On Wed, 2013-07-31 at 09:40 +0200, Murray Cumming wrote: On Mon, 2013-07-29 at 02:33 -0700, sourav wrote: Hi, We have developed an application for an embedded device. Everythings runs fine until I encountered this irritating bug on the web frontend. -- we are running the web frontend

Re: _CLASS_OPAQUE_REFCOUNTED - create method with arguments

2013-07-31 Thread Marcin Kolny
On 07/31/2013 09:42 AM, Murray Cumming wrote: On Tue, 2013-07-30 at 11:50 +0200, Marcin Kolny wrote: On 07/30/2013 11:46 AM, Marcin Kolny wrote: Hello, I'm going to create class, using _CLASS_OPAQUE_REFCOUNTED. Unfortunatelly, my new function has following signature: gst_memory_new_wrapped

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread Ian Martin
Hi, On review, you're using Gtk::Main::run(), which is in the process of getting deprecated, and probably shouldn't be used in new code unless you're working with a gtkmm version 3.0 The progress bar example in the book has the new version, Glib::RefPtrGtk::Application app =

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread L. D. James
Thanks, Ian. And yes. I know that my code is performing outside the gui environment. I gave the example so that the community would understand what I was trying to do and tell me what changes had to happen to have the code perform inside the gui environment. I have already found examples that

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread Jonas Platte
Gtk::Main::run runs until the window is closed. If you want to let the window open while executing code that takes time to finish (like copying many files in an installation), you should create a seperate thread that does those things and updates the UI respectively. For changing the label

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread L. D. James
Thanks Jonas. I have a basic understanding of what you're saying. I kind of figured most of this before my post. I just can't figure out how to actually do it. I'm still searching and reading all the documenting that I can find to help me to figure out how to do it. I have been reading so

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread Jonas Platte
The sigc++ things aren't so hard to use once you understand them. Basically all you have to do is to create a functor (an object representing a function) for your signal handler and pass it to the connect function of a signal (e.g. signal_show of any widget, signal_clicked of a button), then

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread Moh B.
See here for a timing example. Hope this helps you! http://stackoverflow.com/questions/1118227/glibmm-timeout-signal === On Wed, 2013-07-31 at 08:50 -0400, L. D. James wrote: Thanks Jonas. I have a basic understanding of what you're

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread Alan Mazer
As I understand it, you just want a window that display the progress of a computation in ASCII readable text. Here's how I would approach it. 1. Write a program that creates a window. This should be trivial, something you already know how to do. 2. Derive a class from your window class and

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread L. D. James
Thanks, Alan. Your approach sounds very matter of fact, most likely exactly what I'm trying to do. I do it easily with Java, Python, Visual Studio (modal dialog), Android sdk... to name a few. Java is very easy. The Window and Frame is up and has a buffer. All you have to do is just append or

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread Alan Mazer
On 7/31/2013 9:24 AM, L. D. James wrote: Java is very easy. The Window and Frame is up and has a buffer. All you have to do is just append or change the buffer. The window will always reflect the content of the buffer you modify. And you can do this in gtkmm as well. I think someone else

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread L. D. James
Some people gets aggravated and annoyed at the rate that some learn. It almost sounds by the tone of your message that you maybe getting a little annoyed at my slowness in fully grasping this application. I appreciate that you have the patience to suggest that I may not have to fully understand

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread Alan Mazer
On 7/31/2013 2:28 PM, L. D. James wrote: Some people gets aggravated and annoyed at the rate that some learn. It almost sounds by the tone of your message that you maybe getting a little annoyed at my slowness in fully grasping this application. I'm not annoyed. I'm just trying to make sure

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread L. D. James
Hi, Alan. I'm a little embarrassed at the code I'm showing you. I'm still stuck, but I'm sure I have the gist. I can figure it out from here. It's just a matter of time in looking at all the examples from the gtkmm documentation and filling in the glitches I have here. I'm very self-taught in

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread Jonas Platte
You're problem is that your myLabel class isn't a label but a window. You're deriving it from Gtk::Window. Normally, you wouldn't derive your own label, I wonder what you wanted to accomplish with that... To make clear how you would structure your code with an own Window class normally, here