summaryrefslogtreecommitdiff
path: root/src/msg.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-01-13 18:16:50 +0000
committerGlynn Foster <gman@src.gnome.org>2003-01-13 18:16:50 +0000
commit1e0ff80be4b1fe6f2e6def15bfc02b2d09312061 (patch)
tree5853ddc653260fdf5a57e1cbeca9ec603bfa0c98 /src/msg.c
parent9a77e41fecb3489b069aa7b1bb52ba56f1052819 (diff)
Re-structure the code to pass in the ZenityData structure into the
2003-01-13 Glynn Foster <glynn.foster@sun.com> * src/calendar.c: Re-structure the code to pass in the ZenityData structure into the response_callback instead. * src/main.c: Fix the screwups in the commandline parser due to popt being teh suck. * src/msg.c: Don't unref the GladeXML before you use it. * THANKS: New file.
Diffstat (limited to 'src/msg.c')
-rw-r--r--src/msg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/msg.c b/src/msg.c
index bb7190f..cc1f092 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -65,9 +65,6 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data)
break;
}
- if (glade_dialog)
- g_object_unref (glade_dialog);
-
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (zenity_msg_dialog_response), data);
@@ -77,6 +74,9 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data)
}
glade_xml_signal_autoconnect (glade_dialog);
+
+ if (glade_dialog)
+ g_object_unref (glade_dialog);
if (data->dialog_title)
gtk_window_set_title (GTK_WINDOW (dialog), data->dialog_title);