Re: Question about GTK+ and timers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert,

On Fri, Apr 8, 2011 at 1:03 PM, Robert Pearce <rob@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Fri, 8 Apr 2011, Igor Korot <ikorot01@xxxxxxxxx> wrote :
>>
>> My (hopefully last) question here in this thread is: g_io_add_watch()
>> should take a callback (i.e. static function) or just a regular
>> function?
>
> Are you writing in C or C++? I assume you're using the straight Gtk for C as
> the function g_io_add_watch belongs to that and we're on the gtk-list rather
> than the gtkmm one.
>
> Anyway, the function you need to pass is a callback, so it needs to be a
> straight C function not a C++ class member. It doesn't need to be "static"
> in the C sense.

I decided to not to use GIOChannel.
You can only use it if I need to read string, but I need to read data
in a structure.

Thank you.
> --
> Rob Pearce                       http://www.bdt-home.demon.co.uk
>
> The contents of     | All power corrupts, but we need electricity.
> this message are    |
> purely my opinion.  |
> Don't believe a     |
> word.               |
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux