Fix not destroying 'Make Custom Target' input dialog after first

use (oops).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4755 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-03-12 14:54:18 +00:00
parent 9191764491
commit 748cc2b9d9
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,9 @@
Split dialogs_show_input() into 2 functions: one simple, one for
a persistent dialog.
Fix possible double-destroy of input dialog when closed by user.
* src/dialogs.c:
Fix not destroying 'Make Custom Target' input dialog after first
use (oops).
2010-03-10 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -903,6 +903,8 @@ dialogs_show_input_full(const gchar *title, const gchar *label_text, const gchar
if (persistent)
{
/* override default handler */
g_signal_connect(dialog, "delete-event", G_CALLBACK(gtk_widget_hide_on_delete), NULL);
gtk_widget_show_all(dialog);
return dialog;
}