tooltip: Minor cleanup

Preserve the symmetry in gtk_tooltip_set_last_window.
This commit is contained in:
Matthias Clasen 2015-03-22 11:47:23 -04:00
parent a17d6290e4
commit db28b8c600

View File

@ -904,7 +904,7 @@ gtk_tooltip_set_last_window (GtkTooltip *tooltip,
tooltip->last_window = window;
if (window)
if (tooltip->last_window)
g_object_add_weak_pointer (G_OBJECT (tooltip->last_window),
(gpointer *) &tooltip->last_window);