summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrover92000 <[email protected]>2023-01-12 17:55:35 +0100
committerssystems-wulbrich <[email protected]>2023-01-16 12:20:01 +0100
commit3864ae2748282ca74c23fb311f3713a232f69fec (patch)
treede49f801e13adbd0252346487fcc22f29120877f
parent1cfb4b00e90b3c000f3cf938d5c4feb282f94afd (diff)
downloadmate-terminal-3864ae2748282ca74c23fb311f3713a232f69fec.tar.bz2
mate-terminal-3864ae2748282ca74c23fb311f3713a232f69fec.tar.xz
Add GTK Style Class to context menu
This fixes an issue when a monospace font is displayed instead of a proper one in mate-terminal context (right-click) menu. This fixes: https://github.com/mate-desktop/mate-terminal/issues/407
-rw-r--r--src/terminal-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 9b50490..3fabc6b 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1554,6 +1554,8 @@ popup_clipboard_targets_received_cb (GtkClipboard *clipboard,
NULL, NULL,
info->button,
info->timestamp);
+ gtk_style_context_add_class(gtk_widget_get_style_context (popup_menu),
+ GTK_STYLE_CLASS_CONTEXT_MENU);
}
static void