Add GAppInfoMonitor

This is a simple object that emits a "change" signal when the installed
applications may have changed in some way.

https://bugzilla.gnome.org/show_bug.cgi?id=711556
This commit is contained in:
Ryan Lortie
2013-09-25 09:19:43 -04:00
parent 86ce3bf48e
commit e55d33edc1
7 changed files with 286 additions and 0 deletions

View File

@@ -47,6 +47,7 @@
#include "glibintl.h"
#include "giomodule-priv.h"
#include "gappinfo.h"
#include "gappinfoprivate.h"
#include "glocaldirectorymonitor.h"
@@ -179,6 +180,9 @@ desktop_file_dir_changed (GFileMonitor *monitor,
desktop_file_dir_reset (dir);
g_mutex_unlock (&desktop_file_dir_lock);
/* Notify anyone else who may be interested */
g_app_info_monitor_fire ();
}
/* Internal utility functions {{{2 */