Commit 3178a7a3 authored by Daniel Boles's avatar Daniel Boles

Tooltip: Avoid redundant variable initialisations

has_tooltip_widget was assigned twice in immediate succession.

return_value is not used anywhere else in this function since commit
14a864c8 and does not need a default
value anymore, so move it to the inner scope and don't init to NULL.
parent 57ea1796
......@@ -1417,8 +1417,7 @@ static void
gtk_tooltip_handle_event_internal (GdkEvent *event)
{
gint x, y;
gboolean return_value = FALSE;
GtkWidget *has_tooltip_widget = NULL;
GtkWidget *has_tooltip_widget;
GdkDisplay *display;
GtkTooltip *current_tooltip;
......@@ -1434,6 +1433,8 @@ gtk_tooltip_handle_event_internal (GdkEvent *event)
if (current_tooltip && current_tooltip->keyboard_mode_enabled)
{
gboolean return_value;
has_tooltip_widget = current_tooltip->keyboard_widget;
if (!has_tooltip_widget)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment