[Xfce4-commits] [apps/mousepad] 01/01: Do not overwrite view settings when opening encoding dialog (Bug #12298)

noreply at xfce.org noreply at xfce.org
Mon May 27 00:23:28 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/mousepad.

commit 9214a626a1aba77def27188ac8974e1b1eeec47f
Author: Theo Linkspfeifer <lastonestanding at tutanota.com>
Date:   Sun May 26 22:50:56 2019 +0200

    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));
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list