[gtk+/gtk-3-16] tooltip: Minor cleanup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-16] tooltip: Minor cleanup
- Date: Mon, 23 Mar 2015 03:15:02 +0000 (UTC)
commit 2984dcdbe57e49ea20e1c2ecbe391073364bb918
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 22 11:47:23 2015 -0400
tooltip: Minor cleanup
Preserve the symmetry in gtk_tooltip_set_last_window.
gtk/gtktooltip.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index fa4c8b6..fd2ba14 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]