[gnome-builder] code: notify::title when file changes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] code: notify::title when file changes
- Date: Mon, 25 Feb 2019 02:48:57 +0000 (UTC)
commit 3be7f5835170e9a86add4553a3ff7a510d4441a4
Author: Christian Hergert <chergert redhat com>
Date: Sun Feb 24 18:42:21 2019 -0800
code: notify::title when file changes
src/libide/code/ide-buffer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/code/ide-buffer.c b/src/libide/code/ide-buffer.c
index 033330f79..cf511df58 100644
--- a/src/libide/code/ide-buffer.c
+++ b/src/libide/code/ide-buffer.c
@@ -297,6 +297,7 @@ _ide_buffer_set_file (IdeBuffer *self,
gtk_source_file_set_location (self->source_file, file);
ide_buffer_reload_file_settings (self);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TITLE]);
}
}
@@ -2054,7 +2055,7 @@ ide_buffer_set_style_scheme_name (IdeBuffer *self,
}
/**
- * ide_buffer_get_title:
+ * ide_buffer_dup_title:
* @self: an #IdeBuffer
*
* Gets a string to represent the title of the buffer. An attempt is made to
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]