Hi,

In <02a9e84f-ba06-fe78-8e36-fa97168a16a4 / unitybox.de>
  "Re: GTK3 DND-Function don't except files" on Mon, 30 Sep 2019 11:10:56 +0200,
  ulli bei Unity <upahermann / unitybox.de> wrote:

> enclosed the snippet. I use ruby-gtk3 3.2.4-1 now.

Thanks.

How about changing

> cb.drag_dest_set( Gtk::DestDefaults::ALL, [['text/plain', 0, 0]], Gdk::DragAction::COPY)

to

  cb.drag_dest_set(Gtk::DestDefaults::ALL, nil, Gdk::DragAction::COPY)
  cb.drag_dest_add_text_targets
  cb.drag_dest_add_image_targets
  cb.drag_dest_add_uri_targets

?

See also comments from Detlef:
  http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/440375

> With ruby-gtk3 2.2.5 all files would be accepted (pdf,txt, images).
> Now only url from browser.

How did you drag PDF, text and images? Which application did
you use? Nautilus?


Thanks,
--
kou

Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>