[gnome-builder/wip/gtk4-port: 403/736] plugins/vim: toggle command-bar visibility




commit 4fbb4d0a935f4a5d7782402915671b92ae1acd39
Author: Christian Hergert <chergert redhat com>
Date:   Tue Apr 5 10:41:40 2022 -0700

    plugins/vim: toggle command-bar visibility
    
    If we are not active, command-bar should be hidden. command will already
    be hidden automatically so no need to handle it here.

 src/plugins/vim/gbp-vim-workspace-addin.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/plugins/vim/gbp-vim-workspace-addin.c b/src/plugins/vim/gbp-vim-workspace-addin.c
index 0dd3dd7cb..cef9ee7d0 100644
--- a/src/plugins/vim/gbp-vim-workspace-addin.c
+++ b/src/plugins/vim/gbp-vim-workspace-addin.c
@@ -67,6 +67,7 @@ on_keybindings_changed_cb (GbpVimWorkspaceAddin *self,
   if (active != self->active)
     {
       self->active = active;
+      gtk_widget_set_visible (GTK_WIDGET (self->command_bar), active);
       g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_ACTIVE]);
     }
 }


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