[gnome-builder] editor-view: focus next split if available upon vim cycle-next
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editor-view: focus next split if available upon vim cycle-next
- Date: Wed, 21 Jan 2015 01:06:16 +0000 (UTC)
commit d222542bd990b985f4f24d716a397cde3fe1be91
Author: Christian Hergert <christian hergert me>
Date: Tue Jan 20 17:01:15 2015 -0800
editor-view: focus next split if available upon vim cycle-next
https://bugzilla.gnome.org/show_bug.cgi?id=742855
src/editor/gb-editor-view.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/editor/gb-editor-view.c b/src/editor/gb-editor-view.c
index 1c7be14..16fb5a7 100644
--- a/src/editor/gb-editor-view.c
+++ b/src/editor/gb-editor-view.c
@@ -694,9 +694,12 @@ gb_editor_view_on_vim_split (GbEditorView *self,
break;
case GB_SOURCE_VIM_SPLIT_CYCLE_NEXT:
- /* TODO: Take our split into account */
- gb_widget_activate_action (GTK_WIDGET (self), "stack", "focus-right",
- NULL);
+ if (gb_editor_view_get_split_enabled (self) &&
+ gtk_widget_has_focus (GTK_WIDGET (self->priv->frame->priv->source_view)))
+ gb_editor_view_switch_pane (NULL, NULL, self);
+ else
+ gb_widget_activate_action (GTK_WIDGET (self), "stack", "focus-right",
+ NULL);
break;
case GB_SOURCE_VIM_SPLIT_CYCLE_PREVIOUS:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]