summaryrefslogtreecommitdiff
path: root/tests/testtreednd.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Stop using gtk_widget_show/hideMatthias Clasen2022-12-131-1/+1
|
* tests: Ignore deprecationsMatthias Clasen2022-10-111-0/+2
| | | | Eventually, most of these tests should be dropped.
* Replace "gchar" with "char"Benjamin Otte2020-07-251-1/+1
|
* Replace most remaining uses of container apiMatthias Clasen2020-05-111-2/+2
| | | | These are all on GtkBox or enumerating children.
* Use gtk_window_set_child throughoutMatthias Clasen2020-05-041-1/+1
| | | | | Replace all uses of gtk_container_add on windows by gtk_window_set_child.
* tests: Add common_cflags to buildTimm Bäder2020-03-061-0/+1
| | | | | | And fix all the errors and warnings resulting from that See #2491
* droptarget: RedoBenjamin Otte2020-03-021-20/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a huge reorganization of GtkDropTarget. I did not know how to split this up, so it's unfortunately all one commit. Highlights: - Split GtkDropTarget into GtkDropTarget and GtkDropTargetAsync GtkDropTarget is the simple one that only works with GTypes and offers a synchronous interface. GtkDropTargetAsync retains the full old functionality and allows handling mime types. - Drop events are handled differently Instead of picking a single drop target and sending all DND events to it, every event is sent to every drop target. The first one to handle the event gets to call gdk_drop_status(), further handlers do not interact with the GdkDrop. Of course, for the ultimate GDK_DROP_STARTING event, only the first one to accept the drop gets to handle it. This allows stacking DND event controllers that aren't necessarily interested in handling the event or that might decide later to drop it. - Port all widgets to either of those Both have a somewhat changed API due to the new event handling. For the ones who should use the sync version, lots of cleanup was involved to operate on a sync API.
* dnd: Port the TreeModel machinery to GValue DNDBenjamin Otte2020-02-181-22/+17
|
* dragdest: Make gtk_drop_target_new() args be transfer fullBenjamin Otte2020-02-171-4/+1
| | | | Saves tons of code.
* window: Remove type argument from gtk_window_new()Benjamin Otte2020-02-141-1/+1
|
* Stop using gtk_main and gtk_main_quitMatthias Clasen2020-02-091-1/+2
| | | | Replace these calls with direct use of GMainContext api.
* Update all callersMatthias Clasen2020-01-081-0/+1
|
* Remove gtk_drop_target_get_targetMatthias Clasen2020-01-081-1/+1
| | | | | | Now that drop targets are event controllers, we can just use gtk_event_controller_get_widget. Update all callers.
* Replace gtk_drop_target_attach/detachMatthias Clasen2020-01-081-1/+1
| | | | | | Since drop targets are now just event controller, gtk_widget_add/remove_controller works just fine for them.
* droptarget: Drop defaults flagsMatthias Clasen2020-01-081-1/+1
| | | | | | These no longer have any effect. Update all callers.
* testtreednd: Use the new asyn selection readMatthias Clasen2020-01-081-5/+20
|
* testtreednd: Convert to GtkDropTargetMatthias Clasen2020-01-081-4/+6
|
* dnd: Make drag-data-received use a GdkDropBenjamin Otte2018-06-181-2/+1
|
* dnd: Remove x/y coordinates from drag-data-receivedBenjamin Otte2017-12-051-1/+0
| | | | | | This is in preparation of using input streams to show that these coordinates aren't needed most of the time and can otherwise be saved during GtkWidget::drag-drop.
* contentformats: Rename GtkTargetListBenjamin Otte2017-11-201-6/+6
| | | | It's now called GdkContentsFormat
* dnd: Remove GtkTargetEntry and GtkTargetFlagsBenjamin Otte2017-11-201-2/+2
| | | | | | | warning: We don't do any same-app checks anymore so you currently can copy local data into external apps. This will be fixed later.
* selection: Remove the info uintBenjamin Otte2017-11-161-8/+8
| | | | | | | | | Instead of allowing people to pass a uint user-data, insist on them comparing mime types. The user data was a uint instead of a pointer anyway, so uniqueness could not be guaranteed and it caused more issues than it was worth. And that's ignoring the fact that it basically wasn't used.
* dnd: Make GtkDragDest and GtkDragSource use GtkTargetListBenjamin Otte2017-11-151-2/+8
| | | | | This gets rid of GtkTargetEntry in the API and consistently uses GtkTargetList.
* Remove gtk_widget_show_allTimm Bäder2017-01-201-1/+1
|
* Update callersMatthias Clasen2017-01-191-1/+1
| | | | Adapt all our tests and examples to the new initialization api.
* Add a tree dnd testcaseMatthias Clasen2015-06-051-0/+135
This shows a minimal setup for enabling non-row DND from a treeview.