[ghex/ghex-42] widget: Properly update highlights upon resize



commit 25a253f4bfb54d99769db12f42d40b982acaa56b
Author: Logan Rathbone <poprocks gmail com>
Date:   Sun Jun 12 01:26:51 2022 -0400

    widget: Properly update highlights upon resize
    
    (cherry picked from commit 61cf2f9f93ec66126db84cff0f43a8217086c4ea)

 src/gtkhex.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gtkhex.c b/src/gtkhex.c
index b155838..332ce0a 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -1298,9 +1298,6 @@ adj_value_changed_cb (GtkAdjustment *adj, HexWidget *self)
 
        self->top_line = gtk_adjustment_get_value (adj);
 
-       hex_widget_update_all_auto_highlights (self);
-       hex_widget_invalidate_all_highlights (self);
-
        gtk_widget_queue_draw (GTK_WIDGET(self));
 }
 
@@ -2348,6 +2345,9 @@ hex_widget_snapshot (GtkWidget *widget, GtkSnapshot *snapshot)
        else
                self->vis_lines = self->default_lines;
 
+       hex_widget_update_all_auto_highlights (self);
+       hex_widget_invalidate_all_highlights (self);
+
        /* queue child draw functions
         */
 


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