Commit 66c225fb authored by Rodrigo Moya's avatar Rodrigo Moya Committed by Rodrigo Moya

return FALSE if we want the window destroyed.

2007-01-18  Rodrigo Moya <rodrigo@gnome-db.org>

	* libslab/app-shell.c (main_delete_callback): return FALSE if we
	want the window destroyed.

svn path=/trunk/; revision=102
parent 4fbe28ee
2007-01-18 Rodrigo Moya <rodrigo@gnome-db.org>
* libslab/app-shell.c (main_delete_callback): return FALSE if we
want the window destroyed.
2007-01-17 Rodrigo Moya <rodrigo@gnome-db.org>
* libslab/app-shell.[ch] (appshelldata_new): added an argument to
......
......@@ -217,9 +217,10 @@ main_keypress_callback (GtkWidget * widget, GdkEventKey * event, AppShellData *
static gboolean
main_delete_callback (GtkWidget * widget, GdkEvent * event, AppShellData * app_data)
{
if (app_data->exit_on_close)
if (app_data->exit_on_close) {
gtk_main_quit ();
else
return FALSE;
} else
hide_shell (app_data);
return TRUE; /* stop the processing of this event */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment