summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-03-08 11:27:16 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-03-16 21:24:45 -0400
commitc73972f7df8bfc630ffca58f9f21502dab3f8fb7 (patch)
tree2cda35446a55277eca0d4944aa5d179ad303a0f4 /gtk/gtkmain.c
parent8d5f1ae6620dcf0d81d05c480fc4da194249d06b (diff)
downloadgtk+-c73972f7df8bfc630ffca58f9f21502dab3f8fb7.tar.gz
gdk: Rename gdk_event_set_user_data
Lets call it what it is, the target. All of this is private api anyway. Update all callers.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index be19d7389c..9cc8c22e7d 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1416,7 +1416,7 @@ synth_crossing (GtkWidget *widget,
gdouble x, y;
event = gdk_event_new (enter ? GDK_ENTER_NOTIFY : GDK_LEAVE_NOTIFY);
- gdk_event_set_user_data (event, G_OBJECT (widget));
+ gdk_event_set_target (event, G_OBJECT (widget));
gdk_event_set_device (event, gdk_event_get_device (source));
gdk_event_set_source_device (event, gdk_event_get_source_device (source));
@@ -1779,7 +1779,7 @@ gtk_main_do_event (GdkEvent *event)
if (!target_widget)
goto cleanup;
- gdk_event_set_user_data (event, G_OBJECT (target_widget));
+ gdk_event_set_target (event, G_OBJECT (target_widget));
window_group = gtk_main_get_window_group (target_widget);
device = gdk_event_get_device (event);
@@ -2398,7 +2398,7 @@ gtk_get_event_widget (const GdkEvent *event)
GtkWidget *
gtk_get_event_target (const GdkEvent *event)
{
- return GTK_WIDGET (gdk_event_get_user_data (event));
+ return GTK_WIDGET (gdk_event_get_target (event));
}
/**