Example #1
0
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]);
	}
}
Example #2
0
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;
	}
}
Example #3
0
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);
		}
	}
}