[geany/geany] d097e8: Make UNDO_ENCODING updates similar to other updates
Jiří Techet
git-noreply at xxxxx
Thu Jun 23 16:15:21 UTC 2016
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Thu, 23 Jun 2016 16:15:21 UTC
Commit: d097e8cd05c5af53dedf340f421adc066af25a38
https://github.com/geany/geany/commit/d097e8cd05c5af53dedf340f421adc066af25a38
Log Message:
-----------
Make UNDO_ENCODING updates similar to other updates
Simply call ui_update_statusbar() and ui_document_show_hide() like in
other undo actions.
Modified Paths:
--------------
src/document.c
Modified: src/document.c
16 lines changed, 6 insertions(+), 10 deletions(-)
===================================================================
@@ -2945,12 +2945,10 @@ void document_undo(GeanyDocument *doc)
document_redo_add(doc, UNDO_ENCODING, g_strdup(doc->encoding));
document_set_encoding(doc, (const gchar*)action->data);
-
- ignore_callback = TRUE;
- encodings_select_radio_item((const gchar*)action->data);
- ignore_callback = FALSE;
-
g_free(action->data);
+
+ ui_update_statusbar(doc, -1);
+ ui_document_show_hide(doc);
break;
}
case UNDO_EOL:
@@ -3064,12 +3062,10 @@ void document_redo(GeanyDocument *doc)
document_undo_add_internal(doc, UNDO_ENCODING, g_strdup(doc->encoding));
document_set_encoding(doc, (const gchar*)action->data);
-
- ignore_callback = TRUE;
- encodings_select_radio_item((const gchar*)action->data);
- ignore_callback = FALSE;
-
g_free(action->data);
+
+ ui_update_statusbar(doc, -1);
+ ui_document_show_hide(doc);
break;
}
case UNDO_EOL:
--------------
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