[gnome-session] [capplet] Also compare Icon key when comparing user/system files



commit 08b1fa271219aebf72f321abb3196b320690d9ed
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Jun 24 01:18:39 2009 +0200

    [capplet] Also compare Icon key when comparing user/system files

 capplet/gsp-app.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/capplet/gsp-app.c b/capplet/gsp-app.c
index 77483e0..7bb7ef2 100644
--- a/capplet/gsp-app.c
+++ b/capplet/gsp-app.c
@@ -361,6 +361,15 @@ _gsp_app_user_equal_system (GspApp  *app,
                 return FALSE;
         }
 
+        str = gsp_key_file_get_locale_string (keyfile,
+                                              G_KEY_FILE_DESKTOP_KEY_ICON);
+        if (!_gsp_str_equal (str, app->priv->icon)) {
+                g_free (str);
+                g_free (path);
+                g_key_file_free (keyfile);
+                return FALSE;
+        }
+
         g_key_file_free (keyfile);
 
         *system_path = path;



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