forked from AuroraMiddleware/gtk
tooltip: Minor cleanup
Preserve the symmetry in gtk_tooltip_set_last_window.
This commit is contained in:
parent
a17d6290e4
commit
db28b8c600
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user