Blob Blame History Raw
diff -up gnome-panel-2.20.0.1/gnome-panel/panel-applet-frame.c.applet-error gnome-panel-2.20.0.1/gnome-panel/panel-applet-frame.c
--- gnome-panel-2.20.0.1/gnome-panel/panel-applet-frame.c.applet-error	2007-09-21 16:24:28.000000000 -0400
+++ gnome-panel-2.20.0.1/gnome-panel/panel-applet-frame.c	2007-09-21 16:24:32.000000000 -0400
@@ -1253,6 +1253,21 @@ panel_applet_frame_event_listener (Bonob
 		panel_applet_frame_set_size_hints_from_any (frame, any);
 }
 
+static gboolean
+in_default_panel_config (const gchar *id)
+{
+	gchar *dir;
+	gboolean result;
+
+	dir = g_strconcat (PANEL_DEFAULTS_DIR, "/applets/", id, NULL);
+	result = gconf_client_dir_exists (panel_gconf_get_client (),
+                                          dir, 
+                                          NULL);
+        g_free (dir);
+
+	return result;
+}
+
 static void
 panel_applet_frame_activated (Bonobo_Unknown     object,
 			      CORBA_Environment *ev,
@@ -1275,8 +1290,10 @@ panel_applet_frame_activated (Bonobo_Unk
 	if (BONOBO_EX (ev) || object == CORBA_OBJECT_NIL) {
 		error = bonobo_exception_get_text (ev);
 		g_warning (G_STRLOC ": failed to load applet %s:\n%s",
-			   frame->priv->iid, error);
-		panel_applet_frame_loading_failed (frame, frame_act->id);
+		 	  frame->priv->iid, error);
+		if (!in_default_panel_config (frame_act->id)) {
+			panel_applet_frame_loading_failed (frame, frame_act->id);
+		}
 		g_free (frame_act->id);
 		g_free (frame_act);
 		g_free (error);