gtk/demos/gtk-demo
Benjamin Otte a411959c91 droptarget: Redo
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.
2020-03-02 03:18:55 +01:00
..
data gtk-demo: Rename to org.gtk.Demo4 2019-04-02 00:27:32 +00:00
icons/16x16 Add a missing icon 2019-02-13 12:49:31 -05:00
alias_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
all_scroll_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
alphatest.png fix some shell typos 2001-05-07 15:58:47 +00:00
apple-red.png fix to properly queue resizes when the image is set 2001-04-18 18:09:18 +00:00
application_demo.c gtk-demo: Rename to org.gtk.Demo4 2019-04-02 00:27:32 +00:00
application.c popover: Drop ::relative-to 2020-02-24 20:46:41 -05:00
application.ui gtk-demo: Get rid of toolbars 2020-02-07 14:08:08 +01:00
appmenu.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
assistant.c Drop the margin property 2020-02-25 20:59:04 -05:00
background.jpg fix to properly queue resizes when the image is set 2001-04-18 18:09:18 +00:00
blendmodes.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
blends.png demo: add a demo for blend modes 2016-07-03 17:24:47 -04:00
bluroverlay.c Remove gtk_widget_get/set_has_surface 2019-05-28 20:25:15 +00:00
bluroverlay.h gtk-demo: Move the blur demo code here 2019-02-21 19:31:41 -05:00
brick2.png gtk-demo: Add demo of hidpi css assets via -gtk-scaled() 2013-07-03 14:39:25 +02:00
brick.png gtk-demo: Add demo of hidpi css assets via -gtk-scaled() 2013-07-03 14:39:25 +02:00
builder.c gtk-demo: Get rid of toolbars 2020-02-07 14:08:08 +01:00
cell_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
clipboard.c droptarget: Redo 2020-03-02 03:18:55 +01:00
cmy.jpg demo: add a demo for blend modes 2016-07-03 17:24:47 -04:00
col_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
colorsel.c Drop the margin property 2020-02-25 20:59:04 -05:00
combobox.c Drop the margin property 2020-02-25 20:59:04 -05:00
constraints2.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
constraints3.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
constraints.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
context_menu_cursor.png gtk3-demo: Add context-menu cursor 2016-05-17 13:39:18 -04:00
copy_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
crosshair_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
css_accordion.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
css_accordion.css gtk3-demo: Fix some css warnings 2016-05-30 16:19:19 -04:00
css_basics.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
css_basics.css gtk-demo: Fix selection in css basics demo 2015-11-21 21:04:02 +01:00
css_blendmodes.c stylecontext: Port to use display instead of screen 2017-10-31 03:05:54 +01:00
css_blendmodes.css gtk3-demo: Simplify the blendmodes example a bit 2016-07-04 09:59:25 -04:00
css_multiplebgs.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
css_multiplebgs.css gtk-demo: Add demo of hidpi css assets via -gtk-scaled() 2013-07-03 14:39:25 +02:00
css_pixbufs.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
css_pixbufs.css gtk-demo: Fix the CSS examples 2015-11-17 20:02:05 -05:00
css_shadows.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
css_shadows.css gtk3-demo: Update css 2016-02-27 22:39:09 -05:00
cssview.css gtk3-demo: Fix some css warnings 2016-05-30 16:19:19 -04:00
cursors.c builder: Connect signals automatically 2019-11-22 17:42:31 +01:00
cursors.ui Drop the margin property 2020-02-25 20:59:04 -05:00
decor1.png gtk3-demo: Add another overlay demo 2015-07-28 22:47:57 -04:00
decor2.png gtk3-demo: Add another overlay demo 2015-07-28 22:47:57 -04:00
default_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
demo.gresource.xml Remove GtkWidgetPath 2020-01-28 02:17:02 +01:00
demo.ui Drop the expand property 2020-02-25 18:29:15 -05:00
demotaggedentry.c widget: Make gtk_widget_grab_focus() return a boolean 2019-10-15 16:33:05 +02:00
demotaggedentry.h Add a tagged entry demo 2019-03-15 13:21:26 -04:00
dialog.c Drop the margin property 2020-02-25 20:59:04 -05:00
dnd.c Merge branch 'spinning-spinner' into 'master' 2020-02-25 04:04:46 +00:00
dnd.css Make sure stopped spinner stay visible 2017-12-06 23:49:48 -05:00
drawingarea.c Drop the margin property 2020-02-25 20:59:04 -05:00
ducky.png demo: add a demo for blend modes 2016-07-03 17:24:47 -04:00
e_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
editable_cells.c Drop the margin property 2020-02-25 20:59:04 -05:00
entry_completion.c Drop the margin property 2020-02-25 20:59:04 -05:00
entry_undo.c Drop the margin property 2020-02-25 20:59:04 -05:00
ew_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
expander.c label: Remove "line" from wrap properties 2019-09-09 17:36:23 +02:00
filtermodel.c builder: Connect signals automatically 2019-11-22 17:42:31 +01:00
filtermodel.ui Drop the margin property 2020-02-25 20:59:04 -05:00
fishbowl.c popover: Drop ::relative-to 2020-02-24 20:46:41 -05:00
fishbowl.ui gtk-demo: Use normal way to lookup up symbols 2019-12-03 18:12:25 +01:00
fixed.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
fixed.css Add GtkFixed demo 2019-04-02 20:52:49 +01:00
floppybuddy.gif fix some shell typos 2001-05-07 15:58:47 +00:00
flowbox.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
font_features.c gtk-demo: Fix font explore initial state 2019-12-23 22:35:44 -05:00
font-features.ui Drop the margin property 2020-02-25 20:59:04 -05:00
fontplane.c gtk-demo: Don't include "gtk.h" 2019-12-12 19:50:55 +01:00
fontplane.h longpressgesture: Port to new API model 2018-04-26 17:59:42 +02:00
fontrendering.c builder: Connect signals automatically 2019-11-22 17:42:31 +01:00
fontrendering.ui gtk-demo: Some touchups 2019-12-12 18:46:53 -05:00
geninclude.py Enforce UTF-8 encoding when opening C files 2018-01-23 14:04:49 +01:00
gestures.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
glarea-gl.fs.glsl demo: Add GLES support to the GtkGLArea demo 2016-04-25 14:35:02 +01:00
glarea-gl.vs.glsl demo: Add GLES support to the GtkGLArea demo 2016-04-25 14:35:02 +01:00
glarea-gles.fs.glsl demo: Add GLES support to the GtkGLArea demo 2016-04-25 14:35:02 +01:00
glarea-gles.vs.glsl demo: Add GLES support to the GtkGLArea demo 2016-04-25 14:35:02 +01:00
glarea.c Drop the margin property 2020-02-25 20:59:04 -05:00
gnome-applets.png fix to properly queue resizes when the image is set 2001-04-18 18:09:18 +00:00
gnome-calendar.png fix to properly queue resizes when the image is set 2001-04-18 18:09:18 +00:00
gnome-foot.png fix to properly queue resizes when the image is set 2001-04-18 18:09:18 +00:00
gnome-fs-directory.png Add a simple file browser based on the icon view. 2004-07-04 20:35:35 +00:00
gnome-fs-regular.png Add a simple file browser based on the icon view. 2004-07-04 20:35:35 +00:00
gnome-gimp.png fix to properly queue resizes when the image is set 2001-04-18 18:09:18 +00:00
gnome-gmush.png fix to properly queue resizes when the image is set 2001-04-18 18:09:18 +00:00
gnome-gsame.png fix to properly queue resizes when the image is set 2001-04-18 18:09:18 +00:00
gnu-keys.png fix to properly queue resizes when the image is set 2001-04-18 18:09:18 +00:00
grab_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
grabbing_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
gtk_logo_cursor.png gtk-demo: Update cursors demo 2017-11-05 00:07:18 +01:00
gtk-logo.webm gtk-demo: Add a video example (with controls) to the images demo 2018-03-18 21:01:23 +01:00
gtkfishbowl.c Remove gtk_widget_get/set_has_surface 2019-05-28 20:25:15 +00:00
gtkfishbowl.h demo: Clean up GtkFishbowl widget 2018-04-24 21:55:37 +02:00
gtkgears.c gtk-demo: Add gears to the bowl 2018-01-17 14:39:46 -05:00
gtkgears.h gtk-demo: Add gears to the bowl 2018-01-17 14:39:46 -05:00
hand_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
headerbar.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
help_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
hypertext.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
iconscroll.c Drop the margin property 2020-02-25 20:59:04 -05:00
iconscroll.ui gtk-demo: Some touchups 2019-12-12 18:46:53 -05:00
iconview_edit.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
iconview.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
images.c Drop the margin property 2020-02-25 20:59:04 -05:00
infobar.c Drop the margin property 2020-02-25 20:59:04 -05:00
language-names.c gtk-demo: Use harfbuzz for font features 2019-11-01 13:01:54 -04:00
language-names.h gtk-demo: Update font explorer example 2018-01-03 14:56:36 -05:00
links.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
list_store.c Drop the margin property 2020-02-25 20:59:04 -05:00
listbox.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
listbox.ui gtk-demo: Remove menus from listbox demo 2019-12-29 18:45:40 -05:00
main.c gtk-demo: Remove a somewhat silly bit of code 2019-12-29 18:45:40 -05:00
main.ui Drop the expand property 2020-02-25 18:29:15 -05:00
markup.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
markup.txt gtk-demo: Improve markup demo 2016-03-21 13:32:40 -04:00
menus.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
meson.build Remove GtkWidgetPath 2020-01-28 02:17:02 +01:00
messages.txt Minor typos in the Documentation (a/an) 2019-08-25 12:52:46 +00:00
modelbutton.c gtk-demo: Use normal way to lookup up symbols 2019-12-03 18:12:25 +01:00
modelbutton.ui Drop the margin property 2020-02-25 20:59:04 -05:00
move_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
n_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
ne_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
nesw_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
no_drop_cursor.png gtk-demo: Update no-drop cursor image 2016-05-17 13:40:52 -04:00
none_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
not_allowed_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
ns_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
nw_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
nwse_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
org.gtk.Demo4.appdata.xml gtk-demo: Rename to org.gtk.Demo4 2019-04-02 00:27:32 +00:00
org.gtk.Demo4.desktop gtk-demo: Rename to org.gtk.Demo4 2019-04-02 00:27:32 +00:00
org.gtk.Demo4.gschema.xml gtk-demo: Rename to org.gtk.Demo4 2019-04-02 00:27:32 +00:00
overlay2.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
overlay.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
pagesetup.c gtk-demo: Cosmetic changes 2015-06-28 17:41:35 -04:00
paint.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
paintable_animated.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
paintable_mediastream.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
paintable.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
paintable.h demos: Round up the paintable demos with a media stream 2018-03-18 21:01:23 +01:00
panes.c Drop the margin property 2020-02-25 20:59:04 -05:00
password_entry.c Drop the margin property 2020-02-25 20:59:04 -05:00
pickers.c Drop the margin property 2020-02-25 20:59:04 -05:00
pixbufs.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
pointer_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
popover.c Drop the margin property 2020-02-25 20:59:04 -05:00
popover.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
portland-rose.jpg gtk-demo: Add a new overlay demo 2017-10-06 21:58:56 -04:00
printing.c gtk3-demo: Add a page setup example 2015-05-12 08:20:35 -04:00
progress_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
puzzlepiece.c puzzlepiece: Use new snapshot transforms 2019-02-21 19:47:28 +01:00
puzzlepiece.h demo: Add the sliding puzzle demo 2018-06-07 21:47:30 -04:00
reset.css gtk3-demo: Update css 2016-02-27 22:39:09 -05:00
revealer.c builder: Connect signals automatically 2019-11-22 17:42:31 +01:00
revealer.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
rotated_text.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
row_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
s_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
scale.c builder: Connect signals automatically 2019-11-22 17:42:31 +01:00
scale.ui Drop the margin property 2020-02-25 20:59:04 -05:00
script-names.c gtk-demo: Update font explorer example 2018-01-03 14:56:36 -05:00
script-names.h gtk-demo: Update font explorer example 2018-01-03 14:56:36 -05:00
se_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
search_entry2.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
search_entry.c Drop the margin property 2020-02-25 20:59:04 -05:00
shortcuts-boxes.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
shortcuts-builder.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
shortcuts-clocks.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
shortcuts-gedit.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
shortcuts.c icontheme: Remove gtk_icon_theme_get_default() 2020-02-04 16:41:36 +01:00
shortcuts.ui Drop the margin property 2020-02-25 20:59:04 -05:00
sidebar.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
sizegroup.c Drop the margin property 2020-02-25 20:59:04 -05:00
sliding_puzzle.c Drop the margin property 2020-02-25 20:59:04 -05:00
spinbutton.c gtk-demo: Use normal way to lookup up symbols 2019-12-03 18:12:25 +01:00
spinbutton.ui Drop the margin property 2020-02-25 20:59:04 -05:00
spinner.c Drop the margin property 2020-02-25 20:59:04 -05:00
stack.c builder: Connect signals automatically 2019-11-22 17:42:31 +01:00
stack.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
sw_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
tabs.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
tagged_entry.c Drop the margin property 2020-02-25 20:59:04 -05:00
tagstyle.css Add a tagged entry demo 2019-03-15 13:21:26 -04:00
text_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
textmask.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
textscroll.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
textundo.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
textview.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
themes.c events: reorganize getters 2020-02-21 00:51:03 -05:00
themes.ui Drop the margin property 2020-02-25 20:59:04 -05:00
theming_style_classes.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
theming.ui Drop the margin property 2020-02-25 20:59:04 -05:00
transparent.c Drop the margin property 2020-02-25 20:59:04 -05:00
tree_store.c Drop the margin property 2020-02-25 20:59:04 -05:00
vertical_text_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
video_player.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
w_resize_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
wait_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
zoom_in_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
zoom_out_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00