summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-01-18 12:15:01 +0000
committerrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-01-18 12:15:01 +0000
commitb7b4415ba319f0e3f1c8fde88cc2c6c3477934cc (patch)
treefa07cb5ef65016b750d1fc9e797c2b0f31ca268e
parent42cc92ea91cb770e9e0e64e5bede18aa5cfce25d (diff)
GTK: ref the correct object
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@397 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
-rw-r--r--tikzit/src/gtk/SettingsDialog.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/tikzit/src/gtk/SettingsDialog.m b/tikzit/src/gtk/SettingsDialog.m
index 88c66d2..aa5517f 100644
--- a/tikzit/src/gtk/SettingsDialog.m
+++ b/tikzit/src/gtk/SettingsDialog.m
@@ -72,7 +72,7 @@ static void cancel_button_clicked_cb (GtkButton *widget, SettingsDialog *dialog)
GtkWindow *oldParent = parentWindow;
if (parent)
- g_object_ref (parentWindow);
+ g_object_ref (parent);
parentWindow = parent;
if (oldParent)
g_object_unref (oldParent);