Re: [gtk-list] Re: DND from Netscape
- From: David Helder <dhelder umich edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: DND from Netscape
- Date: Sun, 14 Feb 1999 13:01:48 -0500 (EST)
On Sat, 13 Feb 1999, Drazen Kacar wrote:
> Yoni Elhanani wrote:
> > Drazen Kacar wrote:
> > >
> > > David Helder wrote:
> > > >
> > > > GTK has DND, so why use Motif? I can receive URLs from Netscape 4.08 in
> > > > testdnd (in the gtk source directory).
> >
> > No...
> > I run Netscape 4.5 and I cant use DND with testdnd.
> > I recieve all gtk dnds and gnome dnd (which is gtk dnd anyway)
> > but I cant get nothing from netscape.
>
> Which GTK? I tried with GTK+ 1.1.14 and Netscape 4.07 and it works nicely.
> However, Netscape has it's own ideas just about everything. I tried getting
> drops with Xm and Dt functions, but it all led to SIGSEGV in drop callback,
> since it received garbage as arguments. The only way to defend my program
> was to install SIGSEGV and SIGBUS handlers for the duration of drop
> callback, but I still couldn't find a way to actually extract data I needed.
> And I have Motif Programer's guide and Reference and examples directories
> in Solaris and man pages and Xt books and all you could think of :-)
> After two days of banging my head I decided to forget Motif ever existed.
>
> I suppose you can't get it working because you have an older GTK library.
> Look into the source in gtkdnd.c file. If you can't grep MOTIF from there,
> then that's it. If your GTK has support for Motifish thingies, then look
> into Netscape.ad file. There are some resources related to Motif DND there,
> but nobody guarantees they actually mean something to the browser.
> In particular, "Netscape*blinkingEnabled: False" no longer works. Or maybe
> it does again with 4.5. :-)
I'm using GTK 1.1.13 and netscape 4.08 in x86 Linux, fvwm2 is my window
manager (if that matters). Sorry, I don't know what version of X I'm
using. Installing SIGSEGV/SIGBUS handlers sounds like a bad idea. Are
you doing anything inconsistenet with testdnd (deleting/not-deleting the
buffer and returning the wrong value?).
Here's an interesting comment from Netscape 4.08's Netscape.ad:
! Motif drag-and-drop is insanely buggy, and is causing crashes even in
! contexts where it has no business being involved at all. Let's try
! disabling it globally and see if that helps.
!Netscape*dragInitiatorProtocolStyle: XmDRAG_NONE
!Netscape*dragReceiverProtocolStyle: XmDRAG_NONE
This is also in Netscape 4.5's Netscape.ad
David
__ _ __
___/ /__ __ __(_)__/ / David Helder - University of Michigan
/ _ / _ `/ |/ / / _ / dhelder@umich.edu
\_,_/\_,_/|___/_/\_,_/ http://www.eecs.umich.edu/~dhelder
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]