[geany/geany] 2f59aa: Force-check document disk status when switching tabs
Jiří Techet
git-noreply at xxxxx
Wed Nov 4 20:35:13 UTC 2015
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Wed, 04 Nov 2015 20:35:13 UTC
Commit: 2f59aa4a9a124f88336c284fd488cf1acce94c94
https://github.com/geany/geany/commit/2f59aa4a9a124f88336c284fd488cf1acce94c94
Log Message:
-----------
Force-check document disk status when switching tabs
The document_check_disk_status() guarantees that there's no check
performed when switching pages using Ctrl+Tab - remove the outdated
comment and idle call and perform force-check.
Modified Paths:
--------------
src/callbacks.c
Modified: src/callbacks.c
12 lines changed, 1 insertions(+), 11 deletions(-)
===================================================================
@@ -431,13 +431,6 @@ void on_normal_size1_activate(GtkMenuItem *menuitem, gpointer user_data)
}
-static gboolean delayed_check_disk_status(gpointer data)
-{
- document_check_disk_status(data, FALSE);
- return FALSE;
-}
-
-
/* Changes window-title after switching tabs and lots of other things.
* note: using 'after' makes Scintilla redraw before the UI, appearing more responsive */
static void on_notebook1_switch_page_after(GtkNotebook *notebook, gpointer page,
@@ -462,10 +455,7 @@ static void on_notebook1_switch_page_after(GtkNotebook *notebook, gpointer page,
sidebar_update_tag_list(doc, FALSE);
document_highlight_tags(doc);
- /* We delay the check to avoid weird fast, unintended switching of notebook pages when
- * the 'file has changed' dialog is shown while the switch event is not yet completely
- * finished. So, we check after the switch has been performed to be safe. */
- g_idle_add(delayed_check_disk_status, doc);
+ document_check_disk_status(doc, TRUE);
#ifdef HAVE_VTE
vte_cwd((doc->real_path != NULL) ? doc->real_path : doc->file_name, FALSE);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list