From 489e87baea75ba003746f6ab958793ff0c5e261d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 3 Feb 2019 05:37:13 +0100 Subject: [PATCH] main: Rename local variable Make it a little clearer that this is the event widget and not just any widget. --- gtk/gtkmain.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 98b99b2883..50fae76925 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1574,21 +1574,21 @@ set_widget_active_state (GtkWidget *target, static GtkWidget * handle_pointing_event (GdkEvent *event) { - GtkWidget *target = NULL, *old_target = NULL, *widget; + GtkWidget *target = NULL, *old_target = NULL, *event_widget; GtkWindow *toplevel; GtkWidget *toplevel_widget; GdkEventSequence *sequence; GdkDevice *device; gdouble x, y; - widget = gtk_get_event_widget (event); + event_widget = gtk_get_event_widget (event); device = gdk_event_get_device (event); if (!device || !gdk_event_get_coords (event, &x, &y)) - return widget; + return event_widget; - toplevel_widget = gtk_widget_get_toplevel (widget); + toplevel_widget = gtk_widget_get_toplevel (event_widget); if (!GTK_IS_WINDOW (toplevel_widget)) - return widget; + return event_widget; toplevel = GTK_WINDOW (toplevel_widget);