Using Gtk2::Helper->add_watch() or Glib::IO->add_watch

2005-08-16 Thread ofey aikon
a separate "thread" using Gtk2::Helper->add_watch() or Glib::IO->add_watch. Unfortunately, the docs for these APIs didn't help me too much. Google search didn't return much either. Any good samaritan here willing to share some code snippets on how to achieve this ;) ?

Re: Using Gtk2::Helper->add_watch() or Glib::IO->add_watch

2005-08-17 Thread A. Pagaltzis
* ofey aikon <[EMAIL PROTECTED]> [2005-08-17 08:25]: > Unfortunately, the docs for these APIs didn't help me too much. > Google search didn't return much either. Any good samaritan > here willing to share some code snippets on how to achieve this > ;) ? http://live.gnome.org/GTK2_2dPerl_2fFrequent

Re: Using Gtk2::Helper->add_watch() or Glib::IO->add_watch

2005-08-17 Thread ofey aikon
> > http://live.gnome.org/GTK2_2dPerl_2fFrequentlyAskedQuestions#head-3b88c68683fd189b09455a462d5e41669b7b1142 Thanks ! The FAQ however has some minor syntax errors. I found it being discussed here http://mail.gnome.org/archives/gtk-perl-list/2005-March/msg00107.html I tried the code that mup

Re: Using Gtk2::Helper->add_watch() or Glib::IO->add_watch

2005-08-18 Thread A. Pagaltzis
* ofey aikon <[EMAIL PROTECTED]> [2005-08-18 07:10]: > The FAQ however has some minor syntax errors. I found it being > discussed here > http://mail.gnome.org/archives/gtk-perl-list/2005-March/msg00107.html Fixed. > I am wondering if it has anything to do with the fact that I'm > on win32. Proba

Re: Using Gtk2::Helper->add_watch() or Glib::IO->add_watch

2005-08-18 Thread muppet
On Aug 18, 2005, at 1:06 AM, ofey aikon wrote: The FAQ however has some minor syntax errors. It's a wiki, please fix it. :-) I tried the code that muppet has posted in that thread. Somehow that quite doesn't work for me either . I'm on windoze XP. I am wondering if it has anything to do w

Re: Using Gtk2::Helper->add_watch() or Glib::IO->add_watch

2005-08-23 Thread ofey aikon
> That's quite possible. Win32 is infamous for its rather broken > pipes. One aspect of that is that pipes and network sockets behave > differently wrt select(), mostly in that pipes tend to be broken > while sockets work. Well, after spending a bit more time on this, I concluded that using pip

Re: Using Gtk2::Helper->add_watch() or Glib::IO->add_watch

2005-08-23 Thread muppet
On Aug 23, 2005, at 8:30 PM, ofey aikon wrote: That's quite possible. Win32 is infamous for its rather broken pipes. One aspect of that is that pipes and network sockets behave differently wrt select(), mostly in that pipes tend to be broken while sockets work. Well, after spending a bit m

Re: Using Gtk2::Helper->add_watch() or Glib::IO->add_watch

2005-08-23 Thread ofey aikon
> use Gtk2 '-init', '-threads-init'; > > Note, however, that i have not personally played with this thread- > safety stuff to any degree, so YMMV. Hmmm... I tried the following script on two environments Windows XP: Glib 1.060 Gtk2 1.060 Glib built for 2.4.2, running with 2.6.1 Gtk2 built fo