[gnome-builder] configuration: ensure display-name changes get persisted to disk



commit b69e31766ab44bbe85fb677942fe38bd0503d6cc
Author: Christian Hergert <christian hergert me>
Date:   Thu Feb 18 15:56:42 2016 -0800

    configuration: ensure display-name changes get persisted to disk
    
    If we only change the display name, we will not get persisted back to
    disk. We don't really want to set the dirty bit just from changing the name
    as that would result in a new autogen, so simply emit the changed signal
    so that the configuration manager will queue the writeback.

 libide/ide-configuration.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-configuration.c b/libide/ide-configuration.c
index e6d9fcf..f796218 100644
--- a/libide/ide-configuration.c
+++ b/libide/ide-configuration.c
@@ -717,6 +717,7 @@ ide_configuration_set_display_name (IdeConfiguration *self,
       g_free (self->display_name);
       self->display_name = g_strdup (display_name);
       g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DISPLAY_NAME]);
+      g_signal_emit (self, signals [CHANGED], 0);
     }
 }
 


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