Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37870771
en ru br
Репозитории ALT
S:3.50.0-alt1
5.1: 2.26.3-alt4
4.1: 2.22.2-alt0.M41.2
4.0: 2.16.2-alt1
3.0: 2.10.2-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:2.22.0

Группа :: Графические оболочки/GNOME
Пакет: gnome-panel

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: gnome-panel-applet-error.patch
Скачать


diff -up gnome-panel-2.21.91/gnome-panel/panel-applet-frame.c.applet-error gnome-panel-2.21.91/gnome-panel/panel-applet-frame.c
--- gnome-panel-2.21.91/gnome-panel/panel-applet-frame.c.applet-error	2008-02-11 16:15:47.000000000 -0500
+++ gnome-panel-2.21.91/gnome-panel/panel-applet-frame.c	2008-02-13 20:35:59.000000000 -0500
@@ -1242,6 +1242,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 (CORBA_Object  object,
 			      const char   *error_reason,
@@ -1266,7 +1281,9 @@ panel_applet_frame_activated (CORBA_Obje
 	if (error_reason != NULL || object == CORBA_OBJECT_NIL) {
 		g_warning (G_STRLOC ": failed to load applet %s:\n%s",
 			   frame->priv->iid, error_reason);
-		panel_applet_frame_loading_failed (frame, frame_act->id);
+		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);
 		return;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin