[gnome-builder] q on horizontal split closes one pane



commit 3d49d8b19169147406fabb6fe044cb23d764809b
Author: Sourav <souravgl0 gmail com>
Date:   Tue Dec 20 00:27:10 2016 +0530

    q on horizontal split closes one pane
    
    When using a horizontal split, the command ':q' closes both the frames instead of just one.
    
    :q used to fire the ide_layout_stack close action which used to close both the frames.
    It is changed to fire the ide_editor_view close action which closes just one frame.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768481

 plugins/command-bar/gb-vim.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/command-bar/gb-vim.c b/plugins/command-bar/gb-vim.c
index 322fb9e..73c77ee 100644
--- a/plugins/command-bar/gb-vim.c
+++ b/plugins/command-bar/gb-vim.c
@@ -511,7 +511,7 @@ gb_vim_command_quit (GtkWidget      *active_widget,
       ide_widget_action (GTK_WIDGET (source_view), "view", "save", NULL);
     }
 
-  ide_widget_action (GTK_WIDGET (active_widget), "view-stack", "close", NULL);
+  ide_widget_action (GTK_WIDGET (active_widget), "view", "close", NULL);
 
   return TRUE;
 }


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