From 071fea73851125d78a7df3a9b749fa90ab41b0fa Mon Sep 17 00:00:00 2001 From: randomguy3 Date: Thu, 2 Feb 2012 12:09:15 +0000 Subject: GTK: Fix a condition to avoid a critical message git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@406 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64 --- tikzit/src/gtk/PreambleEditor.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tikzit/src/gtk/PreambleEditor.m b/tikzit/src/gtk/PreambleEditor.m index 44fe409..2c292f5 100644 --- a/tikzit/src/gtk/PreambleEditor.m +++ b/tikzit/src/gtk/PreambleEditor.m @@ -105,7 +105,7 @@ static void preamble_selection_changed_cb (GtkTreeSelection *treeselection, - (void) setParentWindow:(GtkWindow*)parent { GtkWindow *oldParent = parentWindow; - if (parent) + if (parentWindow) g_object_ref (parentWindow); parentWindow = parent; if (oldParent) -- cgit v1.2.3