summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrover92000 <[email protected]>2023-01-12 17:55:35 +0100
committermouse <[email protected]>2023-01-14 20:02:00 +0800
commit52fa45d4ca35e6be11ddee818eac84b768f15e22 (patch)
treea0a63b56761bb57176ce852911a64e0a2a487c02
parent093a9ef4fb01e64a77f507bf4673ec9309ffbda3 (diff)
downloadmate-terminal-52fa45d4ca35e6be11ddee818eac84b768f15e22.tar.bz2
mate-terminal-52fa45d4ca35e6be11ddee818eac84b768f15e22.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 aa5288f..53badc8 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1555,6 +1555,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