forked from AuroraMiddleware/gtk
Drop gdk_set/get_show_events
We don't need a separate api to turn on debugging for events.
This commit is contained in:
parent
31bf9da63a
commit
f1cf0eb3fc
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user