[gnome-builder] command-bar: re-enable vim commands



commit 865791553feca370873b154e624fa412629de7c4
Author: Christian Hergert <christian hergert me>
Date:   Mon Jun 8 13:42:17 2015 -0700

    command-bar: re-enable vim commands

 plugins/command-bar/gb-command-bar.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plugins/command-bar/gb-command-bar.c b/plugins/command-bar/gb-command-bar.c
index bba9b5a..b760c34 100644
--- a/plugins/command-bar/gb-command-bar.c
+++ b/plugins/command-bar/gb-command-bar.c
@@ -23,6 +23,7 @@
 #include "gb-command-bar.h"
 #include "gb-command-bar-resources.h"
 #include "gb-command-manager.h"
+#include "gb-command-vim-provider.h"
 #include "gb-glib.h"
 #include "gb-string.h"
 #include "gb-view-stack.h"
@@ -83,10 +84,17 @@ static void
 gb_command_bar_load (GbWorkbenchAddin *addin)
 {
   GbCommandBar *self = (GbCommandBar *)addin;
+  GbCommandProvider *provider;
   GtkWidget *child;
 
   g_assert (GB_IS_COMMAND_BAR (self));
 
+  provider = g_object_new (GB_TYPE_COMMAND_VIM_PROVIDER,
+                           "workbench", self->workbench,
+                           NULL);
+  gb_command_manager_add_provider (self->command_manager, provider);
+  g_clear_object (&provider);
+
   child = gtk_bin_get_child (GTK_BIN (self->workbench));
   gtk_box_pack_end (GTK_BOX (child), GTK_WIDGET (self), FALSE, FALSE, 0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]