diff options
author | Benjamin Otte <otte@redhat.com> | 2012-03-09 13:20:41 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-03-09 13:23:05 +0100 |
commit | 114b45c7ebb03b6b63dcbb51855d5ea87f634171 (patch) | |
tree | a23397e6260d50f2aaedb9b48823268d9a5175fc /gdk/gdkdeviceprivate.h | |
parent | 50e3f532b93f7d7eb755804a80c69eac79ca078e (diff) | |
download | gtk+-114b45c7ebb03b6b63dcbb51855d5ea87f634171.tar.gz |
gdk: Make query_state() vfunc a void vfunc
... and make sure the backends implement it that way.
query_state() return value was ignored in all of GDK and caused crashes
when it failed.
Diffstat (limited to 'gdk/gdkdeviceprivate.h')
-rw-r--r-- | gdk/gdkdeviceprivate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkdeviceprivate.h b/gdk/gdkdeviceprivate.h index 0e5f673471..ff92ea4b41 100644 --- a/gdk/gdkdeviceprivate.h +++ b/gdk/gdkdeviceprivate.h @@ -82,7 +82,7 @@ struct _GdkDeviceClass GdkScreen *screen, gint x, gint y); - gboolean (* query_state) (GdkDevice *device, + void (* query_state) (GdkDevice *device, GdkWindow *window, GdkWindow **root_window, GdkWindow **child_window, @@ -151,7 +151,7 @@ void _gdk_device_add_slave (GdkDevice *device, GdkDevice *slave); void _gdk_device_remove_slave (GdkDevice *device, GdkDevice *slave); -gboolean _gdk_device_query_state (GdkDevice *device, +void _gdk_device_query_state (GdkDevice *device, GdkWindow *window, GdkWindow **root_window, GdkWindow **child_window, |