[gnome-notes] settings: notify font on related changes



commit 3e2b2b8aea981c575f0bd6b55bf47b495d8398a6
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Thu Jun 10 08:48:30 2021 +0530

    settings: notify font on related changes
    
    So that we can hook to font property change alone to handle font changes

 src/bjb-settings.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/bjb-settings.c b/src/bjb-settings.c
index 10f76a58..2142fabc 100644
--- a/src/bjb-settings.c
+++ b/src/bjb-settings.c
@@ -131,6 +131,7 @@ bjb_settings_set_property (GObject      *object,
     case PROP_USE_SYSTEM_FONT:
       g_settings_set_boolean (settings, "use-system-font",
                               g_value_get_boolean (value));
+      g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_FONT]);
       break;
 
     case PROP_FONT:
@@ -153,6 +154,7 @@ bjb_settings_set_property (GObject      *object,
 
     case PROP_TEXT_SIZE:
       g_settings_set_string (settings, "text-size", g_value_get_string (value));
+      g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_FONT]);
       break;
 
     default:


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