[ghex] widget: Properly update highlights upon resize



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

    widget: Properly update highlights upon resize

 src/gtkhex.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gtkhex.c b/src/gtkhex.c
index 677b3e3..156ca72 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -1236,9 +1236,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));
 }
 
@@ -2240,6 +2237,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]