gtk/gdk/x11
Benjamin Otte 43c212ac28 build: Enable -Wswitch-enum and -Wswitch-default
This patch makes that work using 1 of 2 options:

1. Add all missing enums to the switch statement
  or
2. Cast the switch argument to a uint to avoid having to do that (mostly
   for GdkEventType).

I even found a bug while doing that: clearing a GtkImage with a surface
did not notify thae surface property.

The reason for enabling this flag even though it is tedious at times is
that it is very useful when adding values to an enum, because it makes
GTK immediately warn about all the switch statements where this enum is
relevant.
And I expect changes to enums to be frequent during the GTK4 development
cycle.
2017-10-06 21:23:39 +02:00
..
gdkapplaunchcontext-x11.c
gdkasync.c build: Enable -Wswitch-enum and -Wswitch-default 2017-10-06 21:23:39 +02:00
gdkasync.h
gdkcursor-x11.c x11: Add the same message as the wayland backend has 2016-10-17 19:11:32 -04:00
gdkdevice-core-x11.c gdk: Remove motion hints 2017-09-19 18:40:51 +02:00
gdkdevice-xi2.c build: Enable -Wswitch-enum and -Wswitch-default 2017-10-06 21:23:39 +02:00
gdkdevicemanager-core-x11.c
gdkdevicemanager-x11.c
gdkdevicemanager-xi2.c build: Enable -Wswitch-enum and -Wswitch-default 2017-10-06 21:23:39 +02:00
gdkdevicemanagerprivate-core.h
gdkdisplay-x11.c build: Enable -Wswitch-enum and -Wswitch-default 2017-10-06 21:23:39 +02:00
gdkdisplay-x11.h x11: Maointin window visuals without GdkVisual 2016-11-03 23:54:39 +01:00
gdkdnd-x11.c build: Enable -Wswitch-enum and -Wswitch-default 2017-10-06 21:23:39 +02:00
gdkeventsource.c gdk/x11: Implement GDK_CROSSING_TOUCH_BEGIN/END/DEVICE_CHANGE events 2017-09-19 18:40:51 +02:00
gdkeventsource.h
gdkeventtranslator.c
gdkeventtranslator.h
gdkgeometry-x11.c gdk: Drop support for native (and thus foreign) subwindows 2016-12-16 12:28:44 +01:00
gdkglcontext-x11.c glcontext: Fix buffer age comparison 2017-03-21 19:04:58 +01:00
gdkglcontext-x11.h glcontext: Make begin/end_draw() paired 2016-12-05 15:02:47 +01:00
gdkkeys-x11.c build: Enable -Wswitch-enum and -Wswitch-default 2017-10-06 21:23:39 +02:00
gdkmain-x11.c build: Enable -Wswitch-enum and -Wswitch-default 2017-10-06 21:23:39 +02:00
gdkmonitor-x11.c
gdkmonitor-x11.h
gdkprivate-x11.h gdk: Remove testing functions 2017-01-08 03:46:30 +01:00
gdkproperty-x11.c gdk: Drop support for native (and thus foreign) subwindows 2016-12-16 12:28:44 +01:00
gdkscreen-x11.c Avoid unused variable warnings 2017-03-23 16:15:00 +00:00
gdkscreen-x11.h x11: Maointin window visuals without GdkVisual 2016-11-03 23:54:39 +01:00
gdkselection-x11.c gdk: Drop support for native (and thus foreign) subwindows 2016-12-16 12:28:44 +01:00
gdksettings.c
gdkvisual-x11.c build: Enable -Wswitch-enum and -Wswitch-default 2017-10-06 21:23:39 +02:00
gdkvulkancontext-x11.c Rename GDK_WINDOWING_VULKAN 2016-12-09 14:11:37 -05:00
gdkvulkancontext-x11.h Rename GDK_WINDOWING_VULKAN 2016-12-09 14:11:37 -05:00
gdkwindow-x11.c build: Enable -Wswitch-enum and -Wswitch-default 2017-10-06 21:23:39 +02:00
gdkwindow-x11.h x11: Add support for _GTK_EDGE_CONSTRAINTS atom 2017-09-17 23:16:48 -03:00
gdkx11applaunchcontext.h
gdkx11cursor.h
gdkx11device-core.h
gdkx11device-xi2.h
gdkx11device.h
gdkx11devicemanager-core.h
gdkx11devicemanager-xi2.h
gdkx11devicemanager-xi.h
gdkx11devicemanager.h
gdkx11display.h
gdkx11dnd.h
gdkx11glcontext.h
gdkx11keys.h
gdkx11monitor.h
gdkx11property.h
gdkx11screen.h
gdkx11selection.h
gdkx11utils.h
gdkx11visual.h
gdkx11window.h Remove the gdk backend API too 2017-05-02 16:17:33 -04:00
gdkx-autocleanups.h gdk: Remove GdkX11DisplayManager from the build 2017-05-03 14:15:57 +01:00
gdkx.h gdk: Remove GdkX11DisplayManager from the build 2017-05-03 14:15:57 +01:00
gdkxftdefaults.c build: Don't turn off critical warnings 2017-10-06 16:03:08 +02:00
gdkxid.c
meson.build meson: Remove G_LOG_USE_STRUCTURED from target C flags 2017-05-03 16:22:52 +01:00
MwmUtil.h
xsettings-client.c build: Don't turn off critical warnings 2017-10-06 16:03:08 +02:00
xsettings-client.h