Re: Interfacing with the outside world. (usenet: message 12 of 20)
| From: | rdp at talisman dot mv dot com | Date: | Wed, 25 Jun 2003 00:48:41 +0000 |
| Subject: | Re: Interfacing with the outside world. (usenet: message 12 of 20) | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3570@lists.php.net to get a copy of this message | ||
On 24 Jun 2003 usenet.20.jab@spamgourmet.com wrote:
> On Tue, 2003-06-24 at 09:49, Rich Payne - rdp@talisman.mv.com wrote:
> > Jason A. Borgmann said:
> > > I have 2 questings actually.
> > >
> > > 1) Is there a way to spawn an external browser in response to a button
> > > click? I can get the browser to spawn and to the right page, but my
> > > PHP app locks up while the browser is in use and I have to close the
> > > browser to get control of the PHP app again.
> >
> > You need to redirect stdout and stderr. So something like:
> >
> > exec ('/usr/bin/mozilla > /dev/null 2>&1');
> >
> > that's using a bash shell.
> Ooops. I had tried that but forgot to redirect stderr. Thanks.
>
> > > 2) Does anyone have any good pointers/tutorials on Drag n Drop? I
> > > would like to be able to drag say and MP3 to my app and the app starts
> > > playing it.
> >
> > There's an example of DND included with the gtk source distibution,
> > in the test directory. I don't know of a tutorial for it....I just
> > figured it out based on the example (though there's probably more
> > to it than that).
> Yeah I took a look at that a while back. At the time it seemed to work
> only for DND within the app and not for dragging things in from the
> outside of the app. I will have to take a look at it again.
Ah....now I haven't tried that myself. I would imagine it *should* work
with Gtk 1.x apps....but I don't know about anything else. Haven't tried
inter-app-dnd myself.
--rdp
Rich Payne
http://talisman.mv.com
rdp at talisman dot mv dot com