Don't give an error if the property control is NULL

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

	* capplet-dir.c (capplet_control_launch): Don't give an error if
	the property control is NULL
This commit is contained in:
Bradford Hovinen 2001-07-19 17:39:47 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 4ae61c1c2e
commit 2b80912c72
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2001-07-19 Bradford Hovinen <hovinen@ximian.com>
* capplet-dir.c (capplet_control_launch): Don't give an error if
the property control is NULL
2001-07-19 Richard Hestilow <hestilow@ximian.com>
* forgot to commit the pngs

View file

@ -450,20 +450,19 @@ capplet_control_launch (const gchar *capplet_name, gchar *window_title)
g_free (oaf_iid);
if (BONOBO_EX (&ev) || property_control == CORBA_OBJECT_NIL) {
g_critical ("Could not resolve PropertyControl");
/* Capplet is already running in this case */
g_free (moniker);
return NULL;
}
control_ref = Bonobo_PropertyControl_getControl (property_control, 0, &ev);
if (BONOBO_EX (&ev) || control_ref == CORBA_OBJECT_NIL) {
/* Capplet is already running in this case */
bonobo_object_release_unref (property_control, &ev);
g_free (moniker);
return NULL;
}
/* FIXME: Use a human-readable capplet name here */
app = gnome_dialog_new (window_title, GNOME_STOCK_BUTTON_OK,
GNOME_STOCK_BUTTON_CANCEL, NULL);
gtk_object_set_data (GTK_OBJECT (app), "property-control", property_control);