gtk2/demos/gtk-demo
Emmanuele Bassi c655759cef Replace gdk_threads_add_timeout* with g_timeout_add()
The main GDK thread lock is not portable and deprecated.

The only reason why gdk_threads_add_timeout() and
gdk_threads_add_timeout_full() exist is to allow invoking a callback
with the GDK lock held, in case 3rd party libraries still use the
deprecated gdk_threads_enter()/gdk_threads_leave() API.

Since we're removing the GDK lock, and we're releasing a new major API,
such code cannot exist any more; this means we can use the GLib API for
installing timeout callbacks.

https://bugzilla.gnome.org/show_bug.cgi?id=793124
2018-02-03 12:06:58 +01:00
..
data Re-add missing files 2016-10-07 11:17:49 -04: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
apple-red.png
application_demo.c demos/application: Call the right program 2016-11-02 12:23:41 +08:00
application.c gtk-demo: Stop using GdkEventWindowState 2017-12-14 22:24:06 -05:00
application.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
appmenu.ui gtk-demo: Put hte app menu in a separate file 2016-02-27 23:43:06 -05:00
assistant.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
background.jpg
blendmodes.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
blends.png demo: add a demo for blend modes 2016-07-03 17:24:47 -04: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 window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
button_box.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
cell_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
changedisplay.c gtk-demo: Stop using ::button-release-event 2018-01-16 14:14:10 -05:00
clipboard.c gtk-demo: Stop using ::button-press-event 2018-01-16 14:14:10 -05: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 window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
combobox.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +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 Remove gtk_widget_show_all 2017-01-20 21:37:04 +01:00
css_accordion.css gtk3-demo: Fix some css warnings 2016-05-30 16:19:19 -04:00
css_basics.c gtk-demo: Remove calls to gtk_style_context_reset_widgets() 2017-10-31 03:05:54 +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 gtk-demo: Remove calls to gtk_style_context_reset_widgets() 2017-10-31 03:05:54 +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 gtk-demo: Remove calls to gtk_style_context_reset_widgets() 2017-10-31 03:05:54 +01:00
css_pixbufs.css gtk-demo: Fix the CSS examples 2015-11-17 20:02:05 -05:00
css_shadows.c gtk-demo: Remove calls to gtk_style_context_reset_widgets() 2017-10-31 03:05:54 +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 Expand the cursors demo text 2017-11-05 11:27:06 -05:00
cursors.ui Simplify all ui files again 2018-01-18 17:53:44 -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 toolpalette: Remove 2018-02-03 11:52:37 +01:00
demo.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
dialog.c enums: Change GtkIconSize values 2017-11-15 14:22:17 -05:00
dnd.c Move editing to button release 2017-12-07 21:25:44 -05:00
dnd.css Make sure stopped spinner stay visible 2017-12-06 23:49:48 -05:00
drawingarea.c examples, gtk-demo: Fix copy-pasta in signal name 2018-01-03 09:59:19 +01: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 window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
entry_buffer.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
entry_completion.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
event_axes.c gtk-demo: Use GdkEvent API 2017-09-19 18:39:03 +02: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 box: Remove fill child property 2017-04-25 20:30:37 +02:00
filtermodel.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
filtermodel.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
fishbowl.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
fishbowl.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
floppybuddy.gif
flowbox.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
font_features.c gtk-demo: Update font explorer example 2018-01-03 14:56:36 -05:00
font-features.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
fontplane.c gtk-demo: Update font explorer example 2018-01-03 14:56:36 -05:00
fontplane.h gtk-demo: Update font explorer example 2018-01-03 14:56:36 -05:00
foreigndrawing.c Use a texture instead of a pixbuf in gtk_render_icon 2017-11-29 23:30:47 -05:00
geninclude.py Enforce UTF-8 encoding when opening C files 2018-01-23 14:04:49 +01:00
gestures.c gtk: Mass delete all GtkWidget event mask API 2017-05-25 16:25:58 +02: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 window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
gnome-applets.png
gnome-calendar.png
gnome-foot.png
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
gnome-gmush.png
gnome-gsame.png
gnu-keys.png
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
gtk4-demo.desktop Re-add missing files 2016-10-07 11:17:49 -04:00
gtk_logo_cursor.png gtk-demo: Update cursors demo 2017-11-05 00:07:18 +01:00
gtkfishbowl.c widgetbowl: Only use one widget type 2017-12-01 07:33:52 +01:00
gtkfishbowl.h gtk4-demo: Add widgetbowl demo 2017-07-19 21:27:15 -04: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 Rename GtkHeaderBar::show-close-button 2017-12-07 22:37:06 -05:00
help_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
hypertext.c gtk-demo: Stop using ::motion-notify-event in the hypertext demo 2018-01-16 14:14:10 -05:00
iconview_edit.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
iconview.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
images.c Replace gdk_threads_add_timeout* with g_timeout_add() 2018-02-03 12:06:58 +01:00
infobar.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
language-names.c build: Use pkg-config to find iso-codes 2018-01-07 14:53:41 +08:00
language-names.h gtk-demo: Update font explorer example 2018-01-03 14:56:36 -05:00
links.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
list_store.c gtk-demo: Stop using ::delete-event 2018-01-16 14:14:09 -05:00
listbox.c enums: Change GtkIconSize values 2017-11-15 14:22:17 -05:00
listbox.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
main.c gtk-demo: Port to GdkClipboard 2017-12-03 05:46:49 +01:00
main.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
markup.c Rename GtkHeaderBar::show-close-button 2017-12-07 22:37:06 -05:00
markup.txt gtk-demo: Improve markup demo 2016-03-21 13:32:40 -04:00
menus.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
menus.ui Remove GtkWindow::hide-titlebar-when-maximized 2017-05-01 13:26:46 -04:00
meson.build toolpalette: Remove 2018-02-03 11:52:37 +01:00
messages.txt gtk-demo: Update listbox example with longer list 2015-08-24 21:28:53 +02:00
modelbutton.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
modelbutton.ui Simplify all ui files again 2018-01-18 17:53:44 -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.Demo.gschema.xml gtk-demo: Add window size saving example 2016-02-13 23:03:18 -05:00
overlay2.c Remove gtk_widget_show_all 2017-01-20 21:37:04 +01:00
overlay.c gtk-demo: Fix the overlay demo 2017-10-06 21:35:21 -04:00
pagesetup.c gtk-demo: Cosmetic changes 2015-06-28 17:41:35 -04:00
panes.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
pickers.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
pixbufs.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +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 gtk-demo: Fix popover positioning in popover test 2017-11-05 15:22:14 +01:00
popover.ui Simplify all ui files again 2018-01-18 17:53:44 -05: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
reset.css gtk3-demo: Update css 2016-02-27 22:39:09 -05:00
revealer.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
revealer.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
rotated_text.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +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 window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
scale.ui Simplify all ui files again 2018-01-18 17:53:44 -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 box: Remove fill child property 2017-04-25 20:30:37 +02:00
search_entry.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
shortcuts-boxes.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
shortcuts-builder.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
shortcuts-clocks.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
shortcuts-gedit.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
shortcuts.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
shortcuts.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
sidebar.c Rename GtkHeaderBar::show-close-button 2017-12-07 22:37:06 -05:00
sizegroup.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
spinbutton.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
spinbutton.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
spinner.c box: Remove fill child property 2017-04-25 20:30:37 +02:00
stack.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
stack.ui Simplify all ui files again 2018-01-18 17:53:44 -05: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: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
text_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04:00
textmask.c Remove gtk_widget_show_all 2017-01-20 21:37:04 +01:00
textscroll.c box: Remove fill child property 2017-04-25 20:30:37 +02:00
textview.c textview: Replace pixbufs by textures 2017-11-29 23:22:13 -05:00
theming_style_classes.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
theming.ui Simplify all ui files again 2018-01-18 17:53:44 -05:00
transparent.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
tree_store.c window: Turn gtk_window_set_screen() into gtk_window_set_display() 2017-10-31 08:25:37 +01:00
vertical_text_cursor.png gtk-demo: Don't rely on gdk_cursor_get_image 2015-05-11 23:06:50 -04: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
widgetbowl.c gtk-demo: Add gears to the bowl 2018-01-17 14:39:46 -05: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