From adb547a1478738828c09595f848b6105328df5bc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 6 Mar 2019 23:39:53 -0500 Subject: [PATCH] Export gtk_synthesize_crossing_events internally We want to use this for focus changes, now that it can emit focus change events. --- gtk/gtkmain.c | 2 +- gtk/gtkwidgetprivate.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 70a7c43313..043d02e221 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1466,7 +1466,7 @@ synth_crossing (GtkWidget *widget, g_object_unref (event); } -static void +void gtk_synthesize_crossing_events (GtkWindow *toplevel, GtkWidget *old_target, GtkWidget *new_target, diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h index 231748d655..d995faa87a 100644 --- a/gtk/gtkwidgetprivate.h +++ b/gtk/gtkwidgetprivate.h @@ -242,6 +242,12 @@ GdkSurface * _gtk_widget_get_device_surface (GtkWidget *widget, GdkDevice *device); GList * _gtk_widget_list_devices (GtkWidget *widget); +void gtk_synthesize_crossing_events (GtkWindow *toplevel, + GtkWidget *from, + GtkWidget *to, + GdkEvent *event, + GdkCrossingMode mode); + void _gtk_widget_synthesize_crossing (GtkWidget *from, GtkWidget *to, GdkDevice *device,