Don't connect the app's button signals if the app has just been destroyed

2001-07-23  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Don't connect the
	app's button signals if the app has just been destroyed
This commit is contained in:
Bradford Hovinen 2001-07-23 23:03:00 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 8d99fd960e
commit 02d668ce65
2 changed files with 4 additions and 3 deletions

View file

@ -3,6 +3,8 @@
* capplet-dir.c (capplet_control_launch): Put up an error dialog
and abort the process if the capplet reports an error trying to
resolve its moniker
(capplet_control_launch): Don't connect the app's button signals
if the app has just been destroyed
2001-07-20 Chema Celorio <chema@celorio.com>

View file

@ -491,13 +491,12 @@ capplet_control_launch (const gchar *capplet_name, gchar *window_title)
g_free (moniker);
app = NULL;
} else {
gnome_dialog_button_connect (GNOME_DIALOG (app), 0, GTK_SIGNAL_FUNC (capplet_ok_cb), app);
gnome_dialog_button_connect (GNOME_DIALOG (app), 1, GTK_SIGNAL_FUNC (capplet_cancel_cb), app);
gtk_widget_show_all (app);
}
}
gnome_dialog_button_connect (GNOME_DIALOG (app), 0, GTK_SIGNAL_FUNC (capplet_ok_cb), app);
gnome_dialog_button_connect (GNOME_DIALOG (app), 1, GTK_SIGNAL_FUNC (capplet_cancel_cb), app);
CORBA_exception_free (&ev);
g_free (moniker);