From 1c80e924e918cbb1deb04419916e26f3a10f8efb Mon Sep 17 00:00:00 2001 From: Theo Linkspfeifer Date: Sun, 26 May 2019 22:50:56 +0200 Subject: [PATCH 1/1] Do not overwrite view settings when opening encoding dialog (Bug #12298) --- mousepad/mousepad-encoding-dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mousepad/mousepad-encoding-dialog.c b/mousepad/mousepad-encoding-dialog.c index 841fa39..110a3c9 100644 --- a/mousepad/mousepad-encoding-dialog.c +++ b/mousepad/mousepad-encoding-dialog.c @@ -207,8 +207,9 @@ mousepad_encoding_dialog_init (MousepadEncodingDialog *dialog) gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (dialog->document), TRUE, TRUE, 0); gtk_text_view_set_editable (GTK_TEXT_VIEW (dialog->document->textview), FALSE); gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (dialog->document->textview), FALSE); + g_settings_unbind (G_OBJECT (dialog->document->textview), "show-line-numbers"); gtk_source_view_set_show_line_numbers (GTK_SOURCE_VIEW (dialog->document->textview), FALSE); - mousepad_view_set_word_wrap (dialog->document->textview, FALSE); + gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (dialog->document->textview), GTK_WRAP_NONE); gtk_widget_show (GTK_WIDGET (dialog->document)); } -- 2.20.1