[gnome-builder/wip/gtk4-port: 386/1774] plugins/vim: make commandbar monospace
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 386/1774] plugins/vim: make commandbar monospace
- Date: Mon, 11 Jul 2022 22:31:10 +0000 (UTC)
commit 19d9fabcc54ed0fb7959e53422127f273d71e363
Author: Christian Hergert <chergert redhat com>
Date: Tue Apr 5 09:23:19 2022 -0700
plugins/vim: make commandbar monospace
src/plugins/vim/gbp-vim-workspace-addin.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/vim/gbp-vim-workspace-addin.c b/src/plugins/vim/gbp-vim-workspace-addin.c
index a30b12c35..a07be39ae 100644
--- a/src/plugins/vim/gbp-vim-workspace-addin.c
+++ b/src/plugins/vim/gbp-vim-workspace-addin.c
@@ -43,20 +43,26 @@ gbp_vim_workspace_addin_load (IdeWorkspaceAddin *addin,
{
GbpVimWorkspaceAddin *self = (GbpVimWorkspaceAddin *)addin;
PanelStatusbar *statusbar;
+ PangoAttrList *attrs;
IDE_ENTRY;
g_assert (IDE_IS_WORKSPACE_ADDIN (self));
g_assert (IDE_IS_WORKSPACE (workspace));
+ attrs = pango_attr_list_new ();
+ pango_attr_list_insert (attrs, pango_attr_family_new ("Monospace"));
+
self->command_bar = g_object_new (GTK_TYPE_LABEL,
+ "attributes", attrs,
"hexpand", TRUE,
"selectable", TRUE,
"xalign", .0f,
NULL);
self->command = g_object_new (GTK_TYPE_LABEL,
- "xalign", 1.f,
+ "attributes", attrs,
"visible", FALSE,
+ "xalign", 1.f,
NULL);
statusbar = ide_workspace_get_statusbar (workspace);
@@ -65,6 +71,8 @@ gbp_vim_workspace_addin_load (IdeWorkspaceAddin *addin,
panel_statusbar_add_prefix (statusbar, GTK_WIDGET (self->command_bar));
panel_statusbar_add_prefix (statusbar, GTK_WIDGET (self->command));
+ pango_attr_list_unref (attrs);
+
IDE_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]