Set InvalidValue exception if the program could not resolve the moniker

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

	* capplet-util.c (set_moniker_cb): Set InvalidValue exception if
	the program could not resolve the moniker

	* 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
This commit is contained in:
Bradford Hovinen 2001-07-23 22:58:32 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 0e9e3ca1a2
commit 8d99fd960e
4 changed files with 24 additions and 6 deletions

View file

@ -124,8 +124,10 @@ set_moniker_cb (BonoboPropertyBag *bag, BonoboArg *arg, guint arg_id,
pf = BONOBO_PROPERTY_FRAME (bonobo_control_get_widget (control));
bonobo_property_frame_set_moniker (pf, full_moniker);
if (pf->proxy->bag == CORBA_OBJECT_NIL)
gnome_error_dialog ("Could not load your configuration settings.");
if (pf->proxy->bag == CORBA_OBJECT_NIL) {
bonobo_exception_set (ev, ex_Bonobo_Property_InvalidValue);
return;
}
proxy = BONOBO_OBJREF (pf->proxy);