static void on_scope_cleanup_files(G_GNUC_UNUSED const MenuItem *menu_item) { guint i; foreach_document(i) { if (utils_attrib(documents[i], SCOPE_OPEN)) document_close(documents[i]); } }
static void schedule_settings_saved(gboolean conterm) { guint i; saved_id = plugin_idle_add(geany_plugin, settings_saved, GINT_TO_POINTER(conterm)); foreach_document(i) { if (utils_attrib(documents[i], SCOPE_LOCK)) documents[i]->readonly = FALSE; } }
static void unlock_readonly(void) { guint i; foreach_document(i) { if (utils_attrib(documents[i], SCOPE_LOCK)) { documents[i]->readonly = FALSE; if (!resync_id) resync_id = plugin_idle_add(geany_plugin, resync_readonly, NULL); } } }