Gtk::Curve usage?

2005-09-26 Thread tc6
Hi, I'm trying to use a gtk::curve to display data (basically an array of integer). The function get_vector (int veclen, float *data) returns a seg fault and I'm not sure if setting the array data directly is the correct method (probably not). Any example or advice will be very helpful. Is the

Re: Gnome, Gtkmm and sockets

2005-05-16 Thread tc6
gnet may be the library you need Fabio Rafael da Rosa wrote: >Hi all, >I'm a C++ programmer, and I am developing a little app to learn >some gtkmm and gnome programming. >I'll use some communication via TCP. There is some lib used by gnome >developers to communication via TCP? > >-- >Fabio Raf

Re: connecting a callback to a boolean value

2005-04-17 Thread tc6
my problem in a previous mail : "Trying Glib::signal_io().connect() with GIOChannel (from gnet)". And I'm still stuck with it. Thank you anyway for your answer. Murray Cumming wrote: On Sun, 2005-04-17 at 09:11 +0200, tc6 wrote: unfortunately no widget causes the boolean to c

Trying Glib::signal_io().connect() with GIOChannel (from gnet)

2005-04-17 Thread tc6
Here is what I'm trying to do (without success): ioChannel_.set(gnet_udp_socket_get_io_channel(socket_)); Glib::signal_io().connect(sigc::ptr_fun(aareceive), ioChannel_, Glib::IO_IN | Glib::IO_HUP); where bool aareceive(Glib::IOCondition c) is my callback function and ioChannel_ is an object of

Re: connecting a callback to a boolean value

2005-04-17 Thread tc6
to what is changing the bool variable - is it a button, a screen close, table update, etc and tie a callback to that, then in your callback, if (bool == true) {} On Saturday 16 April 2005 12:35, tc6 wrote: Hello, I'm trying to connect a callback function to a boolean value, i

connecting a callback to a boolean value

2005-04-16 Thread tc6
Hello, I'm trying to connect a callback function to a boolean value, ie the callback has to be called each time a variable equals true... It would be really helpful if someone has some code example... I spend a lot of time tring to use add_watch() with giochannel (or Glib::iochannel) from an udp

Re: Gtk(mm) without X server

2005-04-04 Thread tc6
I try this but I still get the 'Gtk-warning: Cannot open display' error. and my application doesn't launch. Quoting ERDI Gergo <[EMAIL PROTECTED]>: > On Mon, 4 Apr 2005 [EMAIL PROTECTED] wrote: > > > I guess the problem comes from the gtk.main.run() that requires an access > to X > > events. Is

Gtk(mm) without X server

2005-04-04 Thread tc6
I'm looking for a simple way to run gtk(mm) app in console mode without widget (I don't need frame buffer display). I plan to build an application that can be both client or server. The server version has to be designed for embedded application without X server. I can run my application (with gtk w