Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread Andrew Potter
Mr. James, This reply has 3 examples. The last time I sent you a complete solution you never indicated how it was insufficient, so please be sure read this entire message. The minimum amount of lines to use a TextView: //== Example 1 Begin // #include gtkmm.h int main(int

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
Thank you Andrew. I misunderstood your first message and am looking at it more in depth as well as your current post. You bring up a very important clarification I should make from my original post in this thread. I should not have counted the comments as part of the total number of lines.

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
Thanks you plenty, Andrew for giving so much consideration to my question. I'm really grateful for the generous comments and white spaces for clarity. I should have run this line on Kjell's code before making a reference to 400 lines: // cli command begin cat * | egrep -v ^\s+\*|^$|^/|^\s+/ |

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
I may be able to eventually figure out how to do it from your example, but at present it doesn't appear to have the ability to append text, except for an initial text and one addition. I'm trying to be able to arbitrarily update the text numerous times (just like you would with cout). I thought

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread Chris Vine
On Sat, 10 Aug 2013 05:43:42 -0400 L. D. James lja...@apollo3.com wrote: When I first started programming and was able to output a Hello World, I was happy. It worked. I made lots of changes and understood it. When I performed my first I/O it was just a minimum number of lines and did a

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
Thanks for the advise, Chris I already have a lot of applications of which I hope to put into place for my clients who see a monster when they see a text screen. Many of the task are very simple task, such as connecting to a VPN and giving a status of each step, so that if any component failed,

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread Chris Vine
On Sat, 10 Aug 2013 09:32:58 -0400 L. D. James lja...@apollo3.com wrote: [snip] As far as realworld applications, most applications have some element of processing and outputting a status to the user without the user having to sit at the concole and constantly click buttons. I really

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
On Sat, 2013-08-10 at 16:45 +0100, Chris Vine wrote: Your posts are no doubt highly meritorious but I am afraid they are not offering much clarification. You would probably make your point better if you shortened your posts by roughly an order of magnitude. However, after cutting through

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread Chris Vine
On Sat, 10 Aug 2013 12:16:16 -0400 L. D. James lja...@apollo3.com wrote: [snip] The VPN application currently have 500 lines. I'll strip it down to 50, making sure it retains functionality and post it. One of the reasons I didn't post it before, but posted sleep(10) to represent the

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread Andrew Potter
dispatcher() causes the function blocking_operation_finished() to be called, which in turn calls Glib::Threads::Thread::join(). join() will block the GTK+ main loop until the thread has completely finished (i.e. blocking_operation() has returned). Calling dispatcher() more than once means that

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
On 08/10/2013 11:45 AM, Chris Vine wrote: Your posts are no doubt highly meritorious but I am afraid they are not offering much clarification. You would probably make your point better if you shortened your posts by roughly an order of magnitude. However, after cutting through the dense

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
Thanks, Andrew. I'll study and compile your example and comment on if it's the gist of what I'm trying to accomplish. Looking at it, it appears like it will work. However, I'm not trying to send progress statistics, I'm just trying to send general information. Some of my programs sorts and

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread Chris Vine
On Sat, 10 Aug 2013 17:53:41 -0400 L. D. James lja...@apollo3.com wrote: [snip] Chris, thanks again for your interest in my question. I apologize for the delayed response, as I was on a support call for most of the day. When I got back I trimmed down 500 lines of code to the example below.

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
On 08/10/2013 07:09 PM, Chris Vine wrote: This appears to be just a batch job calling popen() which brings up a ppp connection. There is no program loop anywhere and the while loop for fgets() in runit() will block until EOF is reached, which equates to the call to pppd ending and the process

compiler error

2013-08-10 Thread Kemin Zhou bmsid=00337162
I am trying to compiler gtkmm2.99, Some some packages, they don't like gtk3.* I am not sure this is because that I am using a newer compiler or not: cal/include/c++/4.8.1 -MT event.lo -MD -MP -MF .deps/event.Tpo -c -o event.lo event.cc libtool: compile: g++ -DHAVE_CONFIG_H -I.. -I../..

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread Chris Vine
On Sat, 10 Aug 2013 19:41:33 -0400 L. D. James lja...@apollo3.com wrote: [snip] While I'm having problems just sending text to a window, you're suggesting that I dive figure and use gtkmm for my other calls. I might get to that at some time. But at present, I just want to use gtkmm to

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
Thanks, Chris. I may end up using Glib::spawn_async (but I it doesn't appear to be a call for updating text to a gui window) and I may end up using Glib::signal_io().connect()) to send text to the gui window. This is the first time i see these as ways of updating the gui. Keep in mind that what