[gimp] libgimpwidgets: in GimpNumberPairEntry, update font when updating text



commit 45bfa168bf56dba5a0d5ddeb8570a8a33e7f332a
Author: Ell <ell_se yahoo com>
Date:   Tue Feb 27 03:48:36 2018 -0500

    libgimpwidgets: in GimpNumberPairEntry, update font when updating text
    
    ... in particular, so that the font is updated correctly when
    reverting an invalid string.

 libgimpwidgets/gimpnumberpairentry.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgimpwidgets/gimpnumberpairentry.c b/libgimpwidgets/gimpnumberpairentry.c
index 04ffe0f..4c0e0ac 100644
--- a/libgimpwidgets/gimpnumberpairentry.c
+++ b/libgimpwidgets/gimpnumberpairentry.c
@@ -979,6 +979,8 @@ gimp_number_pair_entry_update_text (GimpNumberPairEntry *entry)
 
   g_signal_handlers_unblock_by_func (entry,
                                      gimp_number_pair_entry_changed, NULL);
+
+  gimp_number_pair_entry_modify_font (entry, ! priv->user_override);
 }
 
 static gboolean


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