[gnome-builder/wip/libide] libide: test word completion with -w command line option
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: test word completion with -w command line option
- Date: Tue, 10 Mar 2015 22:20:43 +0000 (UTC)
commit 5236d3419a7e4efe8c238ae09086934f9bf0e1c8
Author: Christian Hergert <christian hergert me>
Date: Tue Mar 10 15:20:22 2015 -0700
libide: test word completion with -w command line option
tests/test-ide-source-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-ide-source-view.c b/tests/test-ide-source-view.c
index 09f421d..3268a77 100644
--- a/tests/test-ide-source-view.c
+++ b/tests/test-ide-source-view.c
@@ -35,6 +35,7 @@ static GtkProgressBar *gProgress;
static GHashTable *gBufferToView;
static GList *gFilesToOpen;
static gint gExitCode = EXIT_SUCCESS;
+static gboolean gWordCompletion;
static gboolean gDarkMode;
static gboolean gDebugScrollOffset;
static gchar *gCss = "\
@@ -152,6 +153,7 @@ add_buffer (IdeBuffer *buffer)
view = g_object_new (IDE_TYPE_SOURCE_VIEW,
"auto-indent", TRUE,
"buffer", buffer,
+ "enable-word-completion", gWordCompletion,
"highlight-current-line", TRUE,
"insert-matching-brace", TRUE,
"overwrite-braces", TRUE,
@@ -567,6 +569,8 @@ main (int argc,
gboolean vim = FALSE;
gsize i;
const GOptionEntry entries[] = {
+ { "words", 'w', 0, G_OPTION_ARG_NONE, &gWordCompletion,
+ N_("Use words in all buffers for autocompletion") },
{ "verbose", 'v', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK,
increase_verbosity, N_("Increase logging verbosity.") },
{ "emacs", 'e', 0, G_OPTION_ARG_NONE, &emacs, N_("Use emacs keybindings") },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]