[gnome-builder] libide: set text_set property when setting text
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: set text_set property when setting text
- Date: Tue, 24 Mar 2015 00:21:16 +0000 (UTC)
commit 8f1db9e1d43d0f5a9dd1b247f04f3e6ca798a342
Author: Christian Hergert <christian hergert me>
Date: Mon Mar 16 00:00:41 2015 -0700
libide: set text_set property when setting text
libide/ide-source-snippet-chunk.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-snippet-chunk.c b/libide/ide-source-snippet-chunk.c
index f86fa23..db845f0 100644
--- a/libide/ide-source-snippet-chunk.c
+++ b/libide/ide-source-snippet-chunk.c
@@ -191,6 +191,7 @@ ide_source_snippet_chunk_set_text (IdeSourceSnippetChunk *chunk,
{
g_free (chunk->text);
chunk->text = g_strdup (text);
+ chunk->text_set = (chunk->text != NULL);
g_object_notify_by_pspec (G_OBJECT (chunk), gParamSpecs[PROP_TEXT]);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]