mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user