[gtk/matthiasc/for-master: 2/2] aboutdialog: Disable text undo




commit bc80ed42408fd7cb369f6f801ccc3c5066d7d67a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 6 17:00:43 2020 -0400

    aboutdialog: Disable text undo
    
    The text buffers here are not editable, so it
    does not make sense to have text undo enabled
    for them.
    
    Fixes: #3123

 gtk/gtkaboutdialog.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index d7dfd985f7..f3304fce2c 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -2042,6 +2042,8 @@ text_buffer_new (GtkAboutDialog  *about,
   gtk_text_buffer_get_end_iter (buffer, &end_iter);
   gtk_text_buffer_apply_tag (buffer, tag, &start_iter, &end_iter);
 
+  gtk_text_buffer_set_enable_undo (buffer, FALSE);
+
   return buffer;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]