[gnome-shell] app-system: Fix the keys in the id_to_app table



commit dcb28aad2ab82566cd49b442766ed1aaf518ca84
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Nov 3 12:10:00 2013 -0500

    app-system: Fix the keys in the id_to_app table
    
    The ID that's passed to us isn't usable as a key to store, as it's
    probably junk after the method returns. Use the app's storage for
    the ID instead.

 src/shell-app-system.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-app-system.c b/src/shell-app-system.c
index d9e39e9..56636ff 100644
--- a/src/shell-app-system.c
+++ b/src/shell-app-system.c
@@ -141,7 +141,7 @@ shell_app_system_lookup_app (ShellAppSystem   *self,
     return NULL;
 
   app = _shell_app_new (info);
-  g_hash_table_insert (priv->id_to_app, (char *) id, app);
+  g_hash_table_insert (priv->id_to_app, shell_app_get_id (id), app);
   return app;
 }
 


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