[gnome-builder] libide: hide headers in completion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: hide headers in completion
- Date: Tue, 24 Mar 2015 00:21:06 +0000 (UTC)
commit 1418e711a968d7db394bf7b3ca9cbd92bc5f0f59
Author: Christian Hergert <christian hergert me>
Date: Sun Mar 15 23:59:21 2015 -0700
libide: hide headers in completion
tests/test-ide-source-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-ide-source-view.c b/tests/test-ide-source-view.c
index b1f4d5e..145f1ee 100644
--- a/tests/test-ide-source-view.c
+++ b/tests/test-ide-source-view.c
@@ -152,6 +152,7 @@ add_buffer (IdeBuffer *buffer)
if (!view)
{
GtkScrolledWindow *scroller;
+ GtkSourceCompletion *completion;
scroller = g_object_new (GTK_TYPE_SCROLLED_WINDOW,
"visible", TRUE,
@@ -176,6 +177,8 @@ add_buffer (IdeBuffer *buffer)
"snippet-completion", TRUE,
"visible", TRUE,
NULL);
+ completion = gtk_source_view_get_completion (GTK_SOURCE_VIEW (view));
+ g_object_set (completion, "show-headers", FALSE, NULL);
if (gDebugScrollOffset)
g_signal_connect_after (view, "draw", G_CALLBACK (debug_draw), NULL);
gtk_container_add (GTK_CONTAINER (scroller), GTK_WIDGET (view));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]