[gnome-software/wip/folders: 3/5] Set some hardcoded folders



commit 885c4615018d4bb6c4c720f481ac350da6f6cd17
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 3 01:04:13 2013 -0400

    Set some hardcoded folders
    
    This is just for testing purposes.

 src/plugins/gs-plugin-hardcoded-kind.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-hardcoded-kind.c b/src/plugins/gs-plugin-hardcoded-kind.c
index 453fc64..215dbdd 100644
--- a/src/plugins/gs-plugin-hardcoded-kind.c
+++ b/src/plugins/gs-plugin-hardcoded-kind.c
@@ -99,5 +99,18 @@ gs_plugin_refine (GsPlugin *plugin,
                        }
                }
        }
+       for (l = list; l != NULL; l = l->next) {
+               app = GS_APP (l->data);
+               if (g_strcmp0 ("gimp", gs_app_get_id (app)) == 0) {
+                       gs_app_set_folder (app, "Graphics");
+               }
+               else if (g_strcmp0 ("inkscape", gs_app_get_id (app)) == 0) {
+                       gs_app_set_folder (app, "Graphics");
+               }
+               else if (g_strcmp0 (gs_app_get_id (app), "libreoffice-writer") == 0) {
+                       gs_app_set_folder (app, "Office");
+               }
+       }
+
        return TRUE;
 }


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