[gtk/readonly-events-1: 25/35] Drop gdk_set/get_show_events



commit 33c1bcd9860c76aa63daff11a03a5b14d1d6e09d
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 17 22:11:03 2020 -0500

    Drop gdk_set/get_show_events
    
    We don't need a separate api to turn on debugging
    for events.

 gdk/gdkevents.c | 31 -------------------------------
 gdk/gdkevents.h |  5 -----
 2 files changed, 36 deletions(-)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 7864f7ac3c..82d731f494 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -1346,37 +1346,6 @@ gdk_event_get_event_sequence (GdkEvent       *event)
   return NULL;
 }
 
-/**
- * gdk_set_show_events:
- * @show_events:  %TRUE to output event debugging information.
- * 
- * Sets whether a trace of received events is output.
- * Note that GTK+ must be compiled with debugging (that is,
- * configured using the `--enable-debug` option)
- * to use this option.
- **/
-void
-gdk_set_show_events (gboolean show_events)
-{
-  if (show_events)
-    _gdk_debug_flags |= GDK_DEBUG_EVENTS;
-  else
-    _gdk_debug_flags &= ~GDK_DEBUG_EVENTS;
-}
-
-/**
- * gdk_get_show_events:
- * 
- * Gets whether event debugging output is enabled.
- * 
- * Returns: %TRUE if event debugging output is enabled.
- **/
-gboolean
-gdk_get_show_events (void)
-{
-  return (_gdk_debug_flags & GDK_DEBUG_EVENTS) != 0;
-}
-
 static GdkEventSequence *
 gdk_event_sequence_copy (GdkEventSequence *sequence)
 {
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index b574044ccd..e343503323 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -419,11 +419,6 @@ GdkEventType gdk_event_get_event_type   (GdkEvent       *event);
 GDK_AVAILABLE_IN_ALL
 GdkSeat  *gdk_event_get_seat            (GdkEvent       *event);
 
-GDK_AVAILABLE_IN_ALL
-void     gdk_set_show_events           (gboolean        show_events);
-GDK_AVAILABLE_IN_ALL
-gboolean  gdk_get_show_events          (void);
-
 GDK_AVAILABLE_IN_ALL
 GdkDeviceTool *gdk_event_get_device_tool (GdkEvent       *event);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]