diff options
author | Glynn Foster <glynn.foster@sun.com> | 2003-01-13 18:16:50 +0000 |
---|---|---|
committer | Glynn Foster <gman@src.gnome.org> | 2003-01-13 18:16:50 +0000 |
commit | 1e0ff80be4b1fe6f2e6def15bfc02b2d09312061 (patch) | |
tree | 5853ddc653260fdf5a57e1cbeca9ec603bfa0c98 /src/msg.c | |
parent | Localise output of --calendar dialog by default (using nl_langinfo), (diff) | |
download | zenity-1e0ff80be4b1fe6f2e6def15bfc02b2d09312061.tar.gz zenity-1e0ff80be4b1fe6f2e6def15bfc02b2d09312061.tar.bz2 zenity-1e0ff80be4b1fe6f2e6def15bfc02b2d09312061.zip |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |