Re: GTK3 DND-Function don't except files

Sutou Kouhei <[email protected]> Thu, 10 Oct 2019 15:46:35 +0900 (JST)
Newsgroups gmane.comp.lang.ruby.general
Message-ID <[email protected]>
Hi,

In <[email protected]>
  "Re: GTK3 DND-Function don't except files" on Mon, 30 Sep 2019 11:10:56 +0200,
  ulli bei Unity <[email protected]> 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:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>