diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2020-12-02 15:29:54 +0100 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2020-12-07 20:37:29 +0100 |
commit | 42679f2903aa79639d7b24cf6aab2f5396d87831 (patch) | |
tree | dc9d506215faac26f7817a9165657e68390a5bce /gdk/gdkevents.c | |
parent | 3f96d4b6dae56e5e3fc27a4d7b9a8bd90c9a802c (diff) | |
download | gtk+-42679f2903aa79639d7b24cf6aab2f5396d87831.tar.gz |
gdk: Replace all GDK_CONFIGURE usage with GdkSurface::layout
This removes the GDK_CONFIGURE event and all related functions and data
types; it includes untested changes to the MacOSX, Win32 and Broadway
backends.
Diffstat (limited to 'gdk/gdkevents.c')
-rw-r--r-- | gdk/gdkevents.c | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 9cfefd0d39..30dee67dcd 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -430,7 +430,6 @@ static void gdk_event_init_types_once (void) { g_type_ensure (GDK_TYPE_BUTTON_EVENT); - g_type_ensure (GDK_TYPE_CONFIGURE_EVENT); g_type_ensure (GDK_TYPE_CROSSING_EVENT); g_type_ensure (GDK_TYPE_DELETE_EVENT); g_type_ensure (GDK_TYPE_DND_EVENT); @@ -1818,76 +1817,6 @@ gdk_key_event_get_match (GdkEvent *event, /* }}} */ -/* {{{ GdkConfigureEvent */ - -static gboolean -gdk_configure_event_get_position (GdkEvent *event, - double *x, - double *y) -{ - GdkConfigureEvent *self = (GdkConfigureEvent *) event; - - *x = self->x; - *y = self->y; - - return TRUE; -} - -static const GdkEventTypeInfo gdk_configure_event_info = { - sizeof (GdkConfigureEvent), - NULL, - NULL, - NULL, - gdk_configure_event_get_position, - NULL, - NULL, - NULL, -}; - -GDK_DEFINE_EVENT_TYPE (GdkConfigureEvent, gdk_configure_event, - &gdk_configure_event_info, - GDK_EVENT_TYPE_SLOT (GDK_CONFIGURE)) - -GdkEvent * -gdk_configure_event_new (GdkSurface *surface, - int width, - int height) -{ - GdkConfigureEvent *self; - - g_return_val_if_fail (width >= 0 && height >= 0, NULL); - - self = gdk_event_alloc (GDK_CONFIGURE, surface, NULL, GDK_CURRENT_TIME); - self->width = width; - self->height = height; - - return (GdkEvent *) self; -} - -/** - * gdk_configure_event_get_size: - * @event: (type GdkConfigureEvent): a configure event - * @width: (out): return location for surface width - * @height: (out): return location for surface height - * - * Extracts the surface size from a configure event. - */ -void -gdk_configure_event_get_size (GdkEvent *event, - int *width, - int *height) -{ - GdkConfigureEvent *self = (GdkConfigureEvent *) event; - - g_return_if_fail (GDK_IS_EVENT (event)); - g_return_if_fail (GDK_IS_EVENT_TYPE (event, GDK_CONFIGURE)); - - *width = self->width; - *height = self->height; -} - -/* }}} */ - /* {{{ GdkTouchEvent */ static void |