[gtk+/gtk-2.90] Remove deprecated code from GdkEvent
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2.90] Remove deprecated code from GdkEvent
- Date: Fri, 9 Oct 2009 15:59:02 +0000 (UTC)
commit 7090cdc99b3bfbf9bee18030fa1f26853d33dcc9
Author: Javier Jardón <javierjc1982 gmail com>
Date: Thu Oct 8 22:47:52 2009 +0200
Remove deprecated code from GdkEvent
docs/reference/gdk/gdk-sections.txt | 1 -
docs/reference/gdk/tmpl/events.sgml | 8 -------
gdk/directfb/gdkevents-directfb.c | 30 ---------------------------
gdk/gdk.symbols | 3 --
gdk/gdkevents.c | 3 +-
gdk/gdkevents.h | 3 --
gdk/quartz/gdkevents-quartz.c | 7 ------
gdk/win32/gdkevents-win32.c | 24 ----------------------
gdk/x11/gdkevents-x11.c | 38 -----------------------------------
9 files changed, 1 insertions(+), 116 deletions(-)
---
diff --git a/docs/reference/gdk/gdk-sections.txt b/docs/reference/gdk/gdk-sections.txt
index 9714b3d..b4838eb 100644
--- a/docs/reference/gdk/gdk-sections.txt
+++ b/docs/reference/gdk/gdk-sections.txt
@@ -1083,7 +1083,6 @@ GDK_PRIORITY_REDRAW
gdk_events_pending
gdk_event_peek
gdk_event_get
-gdk_event_get_graphics_expose
gdk_event_put
gdk_event_new
gdk_event_copy
diff --git a/docs/reference/gdk/tmpl/events.sgml b/docs/reference/gdk/tmpl/events.sgml
index 9174b9d..efb9e3e 100644
--- a/docs/reference/gdk/tmpl/events.sgml
+++ b/docs/reference/gdk/tmpl/events.sgml
@@ -182,14 +182,6 @@ is given in the <link linkend="glib-The-Main-Event-Loop">GLib Main Loop</link>.
@Returns:
-<!-- ##### FUNCTION gdk_event_get_graphics_expose ##### -->
-<para>
-</para>
-
- window:
- Returns:
-
-
<!-- ##### FUNCTION gdk_event_put ##### -->
<para>
</para>
diff --git a/gdk/directfb/gdkevents-directfb.c b/gdk/directfb/gdkevents-directfb.c
index d04a6c5..daedcff 100644
--- a/gdk/directfb/gdkevents-directfb.c
+++ b/gdk/directfb/gdkevents-directfb.c
@@ -314,36 +314,6 @@ gdk_events_pending (void)
return _gdk_event_queue_find_first (display) ? TRUE : FALSE;
}
-GdkEvent *
-gdk_event_get_graphics_expose (GdkWindow *window)
-{
- GdkDisplay *display;
- GList *list;
-
- g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
-
- display = gdk_drawable_get_display (GDK_DRAWABLE (window));
-
- for (list = _gdk_event_queue_find_first (display); list; list = list->next)
- {
- GdkEvent *event = list->data;
- if (event->type == GDK_EXPOSE && event->expose.window == window)
- break;
- }
-
- if (list)
- {
- GdkEvent *retval = list->data;
-
- _gdk_event_queue_remove_link (display, list);
- g_list_free_1 (list);
-
- return retval;
- }
-
- return NULL;
-}
-
void
_gdk_events_queue (GdkDisplay *display)
{
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index 3b1fe7b..81e310f 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -22,9 +22,6 @@
#if IN_HEADER(__GDK_EVENTS_H__)
#if IN_FILE(__GDK_EVENTS_X11_C__)
gdk_add_client_message_filter
-#ifndef GDK_DISABLE_DEPRECATED
-gdk_event_get_graphics_expose
-#endif
gdk_events_pending
#endif
#endif
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 90e16d7..7aff13a 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -509,8 +509,7 @@ gdk_event_copy (const GdkEvent *event)
*
* Frees a #GdkEvent, freeing or decrementing any resources associated with it.
* Note that this function should only be called with events returned from
- * functions such as gdk_event_peek(), gdk_event_get(),
- * gdk_event_get_graphics_expose() and gdk_event_copy().
+ * functions such as gdk_event_peek(), gdk_event_get() and gdk_event_copy().
**/
void
gdk_event_free (GdkEvent *event)
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index e6c516c..43d1f45 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -519,9 +519,6 @@ gboolean gdk_events_pending (void);
GdkEvent* gdk_event_get (void);
GdkEvent* gdk_event_peek (void);
-#ifndef GDK_DISABLE_DEPRECATED
-GdkEvent* gdk_event_get_graphics_expose (GdkWindow *window);
-#endif
void gdk_event_put (const GdkEvent *event);
GdkEvent* gdk_event_new (GdkEventType type);
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 54baef7..5fb45d7 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -67,13 +67,6 @@ gdk_events_pending (void)
(_gdk_quartz_event_loop_check_pending ()));
}
-GdkEvent*
-gdk_event_get_graphics_expose (GdkWindow *window)
-{
- /* FIXME: Implement */
- return NULL;
-}
-
GdkGrabStatus
gdk_keyboard_grab (GdkWindow *window,
gint owner_events,
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 9a3c919..fda1e63 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -405,30 +405,6 @@ gdk_events_pending (void)
PeekMessageW (&msg, NULL, 0, 0, PM_NOREMOVE)));
}
-GdkEvent*
-gdk_event_get_graphics_expose (GdkWindow *window)
-{
- MSG msg;
- GdkEvent *event = NULL;
-
- g_return_val_if_fail (window != NULL, NULL);
-
- GDK_NOTE (EVENTS, g_print ("gdk_event_get_graphics_expose\n"));
-
- if (PeekMessageW (&msg, GDK_WINDOW_HWND (window), WM_PAINT, WM_PAINT, PM_REMOVE))
- {
- handle_wm_paint (&msg, window, TRUE, &event);
- if (event != NULL)
- {
- GDK_NOTE (EVENTS, g_print ("gdk_event_get_graphics_expose: got it!\n"));
- return event;
- }
- }
-
- GDK_NOTE (EVENTS, g_print ("gdk_event_get_graphics_expose: nope\n"));
- return NULL;
-}
-
static char *
event_mask_string (GdkEventMask mask)
{
diff --git a/gdk/x11/gdkevents-x11.c b/gdk/x11/gdkevents-x11.c
index e2cae06..b4e273f 100644
--- a/gdk/x11/gdkevents-x11.c
+++ b/gdk/x11/gdkevents-x11.c
@@ -295,44 +295,6 @@ graphics_expose_predicate (Display *display,
return False;
}
-/**
- * gdk_event_get_graphics_expose:
- * @window: the #GdkWindow to wait for the events for.
- *
- * Waits for a GraphicsExpose or NoExpose event from the X server.
- * This is used in the #GtkText and #GtkCList widgets in GTK+ to make sure any
- * GraphicsExpose events are handled before the widget is scrolled.
- *
- * 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)
-{
- XEvent xevent;
- GdkEvent *event;
-
- g_return_val_if_fail (window != NULL, NULL);
-
- XIfEvent (GDK_WINDOW_XDISPLAY (window), &xevent,
- graphics_expose_predicate, (XPointer) window);
-
- if (xevent.xany.type == GraphicsExpose)
- {
- event = gdk_event_new (GDK_NOTHING);
-
- if (gdk_event_translate (GDK_WINDOW_DISPLAY (window), event,
- &xevent, TRUE))
- return event;
- else
- gdk_event_free (event);
- }
-
- return NULL;
-}
-
static gint
gdk_event_apply_filters (XEvent *xevent,
GdkEvent *event,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]