Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » Nautilus and GDK_ACTION_ASK [RSS Feed]

#1 Jan. 8, 2011 21:53:52

Vikram A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Nautilus and GDK_ACTION_ASK


When a user drags files out of my GtkTreeView and into Nautilus, I wantthe user to be prompted and asked whether they wish to either copy, linkor move the files.When I gtk_drag_source_set(mytreeview,...); using GDK_ACTION_LINK,causes nautilus to create links, GDK_ACTION_COPY, causes nautilus tomake copies. But GDK_ACTION_ASK is not accepted by Nautilus.How do I get nautilus to prompt and ask the user what action they wishto use?If nautilus does not allow that, how do I change the suggestedGdkDragAction in the GdkDragContext on the fly from within "drag-data-get" ?Or if that's not possible either, how do I associated a particularGdkDragAction with a particular GtkTargetEntry?Vikram.
PS: Why does Nautilus cause drag-data-get to fire twice?_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

Board footer

Moderator control

Enjoy the 23rd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support