[gtk/matthiasc/for-master] texthandle: Queue a draw when role changes



commit e9438224ab8b6bdc9280858f57d5972ab57ba6f2
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Nov 3 14:39:29 2020 -0500

    texthandle: Queue a draw when role changes
    
    This helps with role changes not taking immediate
    effect.
    
    Fixes: #3320

 gtk/gtktexthandle.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtktexthandle.c b/gtk/gtktexthandle.c
index 5953e4da5f..b5b645a7c9 100644
--- a/gtk/gtktexthandle.c
+++ b/gtk/gtktexthandle.c
@@ -417,6 +417,8 @@ gtk_text_handle_update_for_role (GtkTextHandle *handle)
       gtk_widget_remove_css_class (widget, "bottom");
       gtk_widget_remove_css_class (widget, "insertion-cursor");
     }
+
+  gtk_widget_queue_draw (widget);
 }
 
 static void


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