[maemo-commits] [maemo-commits] r13104 - in projects/haf/branches/hildon-control-panel/refactoring: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Aug 10 14:34:44 EEST 2007
Author: lucasr
Date: 2007-08-10 14:34:42 +0300 (Fri, 10 Aug 2007)
New Revision: 13104

Modified:
   projects/haf/branches/hildon-control-panel/refactoring/ChangeLog
   projects/haf/branches/hildon-control-panel/refactoring/src/hcp-app-list.c
Log:
2007-08-10  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/hcp-app-list.c (hcp_app_list_read_desktop_entries): only consider 
	.desktop files in applets directory.


Modified: projects/haf/branches/hildon-control-panel/refactoring/ChangeLog
===================================================================
--- projects/haf/branches/hildon-control-panel/refactoring/ChangeLog	2007-08-10 11:33:07 UTC (rev 13103)
+++ projects/haf/branches/hildon-control-panel/refactoring/ChangeLog	2007-08-10 11:34:42 UTC (rev 13104)
@@ -1,3 +1,8 @@
+2007-08-10  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* src/hcp-app-list.c (hcp_app_list_read_desktop_entries): only consider 
+	.desktop files in applets directory.
+
 2007-07-04  Lucas Rocha  <lucas.rocha at nokia.com>
 
 	* src/hcp-main.c: call g_thread_init if the thread system wasn't

Modified: projects/haf/branches/hildon-control-panel/refactoring/src/hcp-app-list.c
===================================================================
--- projects/haf/branches/hildon-control-panel/refactoring/src/hcp-app-list.c	2007-08-10 11:33:07 UTC (rev 13103)
+++ projects/haf/branches/hildon-control-panel/refactoring/src/hcp-app-list.c	2007-08-10 11:34:42 UTC (rev 13104)
@@ -395,6 +395,10 @@
     gchar *category = NULL;
     gchar *text_domain = NULL;
 
+    /* Only consider .desktop files */
+    if (!g_str_has_suffix (filename, ".desktop"))
+      continue;   
+    
     desktop_path = g_build_filename (dir_path, filename, NULL);
 
     g_key_file_load_from_file (keyfile,


More information about the maemo-commits mailing list