[gnome-builder/wip/gtk4-port] plugins/vim: toggle command-bar visibility
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/vim: toggle command-bar visibility
- Date: Tue, 5 Apr 2022 17:43:21 +0000 (UTC)
commit ed62c2f365cd2359683fd90db34417d760e3aa0b
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]