[gnome-panel] [bonobo] Fix loading of bonobo applets that are already configured



commit 185327fc3de31d6f931852ceb48c8fd17fef065b
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Sep 6 20:24:30 2010 +0200

    [bonobo] Fix loading of bonobo applets that are already configured
    
    If the user has a bonobo applet in his configuration, we need to tell
    the applet manager that we know this old ID, instead of just returning
    NULL.

 bonobo/panel-module/panel-applets-manager-bonobo.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/bonobo/panel-module/panel-applets-manager-bonobo.c b/bonobo/panel-module/panel-applets-manager-bonobo.c
index c101fbe..f8ab020 100644
--- a/bonobo/panel-module/panel-applets-manager-bonobo.c
+++ b/bonobo/panel-module/panel-applets-manager-bonobo.c
@@ -164,7 +164,9 @@ static PanelAppletInfo *
 panel_applets_manager_bonobo_get_applet_info_from_old_id (PanelAppletsManager *manager,
 							  const gchar         *iid)
 {
-	return NULL;
+	PanelAppletsManagerBonobo *bonobo_manager = PANEL_APPLETS_MANAGER_BONOBO (manager);
+
+	return g_hash_table_lookup (bonobo_manager->priv->applets, iid);
 }
 
 static gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]