diff options
author | Matthias Clasen <mclasen@redhat.com> | 2009-09-09 09:00:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2009-09-09 09:00:15 -0400 |
commit | aa9bb7d8e4cf9ef9d47f6dad6aa9deb2f30723a1 (patch) | |
tree | 9dfc29db8a28563cb1a48588f93e6894813e4074 /gdk/x11/gdkevents-x11.c | |
parent | ebf73f4096879a401ade9483c1cfa5ec8d037221 (diff) | |
download | gtk+-aa9bb7d8e4cf9ef9d47f6dad6aa9deb2f30723a1.tar.gz |
Deprecate gdk_event_get_graphics exposes
This function is only used in deprecated, broken widgets. Also,
fix up some of its implmentation that clang was complaining about.
Diffstat (limited to 'gdk/x11/gdkevents-x11.c')
-rw-r--r-- | gdk/x11/gdkevents-x11.c | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/gdk/x11/gdkevents-x11.c b/gdk/x11/gdkevents-x11.c index eb8bab710e..e2cae06410 100644 --- a/gdk/x11/gdkevents-x11.c +++ b/gdk/x11/gdkevents-x11.c @@ -305,6 +305,8 @@ graphics_expose_predicate (Display *display, * * Return value: a #GdkEventExpose if a GraphicsExpose was received, or %NULL if a * NoExpose event was received. + * + * Deprecated:2.18 **/ GdkEvent* gdk_event_get_graphics_expose (GdkWindow *window) @@ -1598,13 +1600,13 @@ gdk_event_translate (GdkDisplay *display, xevent->xexpose.x, xevent->xexpose.y, xevent->xexpose.width, xevent->xexpose.height, event->any.send_event ? " (send)" : "")); - + if (window_private == NULL) { return_val = FALSE; break; } - + { GdkRectangle expose_rect; @@ -1613,25 +1615,10 @@ gdk_event_translate (GdkDisplay *display, expose_rect.width = xevent->xexpose.width; expose_rect.height = xevent->xexpose.height; - if (return_exposes) - { - event->expose.type = GDK_EXPOSE; - event->expose.area = expose_rect; - event->expose.region = gdk_region_rectangle (&expose_rect); - event->expose.window = window; - event->expose.count = xevent->xexpose.count; - - return_val = TRUE; - } - else - { - _gdk_window_process_expose (window, xevent->xexpose.serial, &expose_rect); - return_val = FALSE; - } - - return_val = FALSE; + _gdk_window_process_expose (window, xevent->xexpose.serial, &expose_rect); + return_val = FALSE; } - + break; case GraphicsExpose: |