[gnome-builder] sourceview: set static scope on textiter signals
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] sourceview: set static scope on textiter signals
- Date: Mon, 4 Sep 2017 20:44:32 +0000 (UTC)
commit 978d98cc50b0a1b95979cd0834a9471ed3648238
Author: Christian Hergert <chergert redhat com>
Date: Mon Sep 4 13:42:58 2017 -0700
sourceview: set static scope on textiter signals
These shouldn't be modified, so ensure they are marked as const and avoid
copies during signal propagation.
libide/sourceview/ide-source-view.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libide/sourceview/ide-source-view.c b/libide/sourceview/ide-source-view.c
index 93c6011..fcf7767 100644
--- a/libide/sourceview/ide-source-view.c
+++ b/libide/sourceview/ide-source-view.c
@@ -7106,8 +7106,8 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
NULL, NULL, NULL,
G_TYPE_NONE,
2,
- GTK_TYPE_TEXT_ITER,
- GTK_TYPE_TEXT_ITER);
+ GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE,
+ GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE);
signals [MOVEMENT] =
g_signal_new ("movement",
@@ -7231,7 +7231,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
2,
IDE_TYPE_SOURCE_SNIPPET,
- GTK_TYPE_TEXT_ITER);
+ GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE);
signals [REBUILD_HIGHLIGHT] =
g_signal_new ("rebuild-highlight",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]