summarylogtreecommitdiffstats
path: root/other__hide-insert-emoji.patch
blob: e4ea53d9f230e4531f52f3dcdae12ea75164c18a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Index: b/gtk+-3.24.14/gtk/gtkentry.c
===================================================================
--- a/gtk+-3.24.14/gtk/gtkentry.c
+++ b/gtk+-3.24.14/gtk/gtkentry.c
@@ -9626,7 +9626,8 @@ popup_targets_received (GtkClipboard
           g_signal_connect_swapped (menuitem, "activate",
                                     G_CALLBACK (gtk_entry_insert_emoji), entry);
           gtk_widget_show (menuitem);
-          gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
+          if (g_getenv ("GTKM_INSERT_EMOJI") != FALSE)
+            gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
         }
 
       g_signal_emit (entry, signals[POPULATE_POPUP], 0, menu);
Index: b/gtk+-3.24.14/gtk/gtktextview.c
===================================================================
--- a/gtk+-3.24.14/gtk/gtktextview.c
+++ b/gtk+-3.24.14/gtk/gtktextview.c
@@ -9537,7 +9537,8 @@ popup_targets_received (GtkClipboard
           g_signal_connect_swapped (menuitem, "activate",
                                     G_CALLBACK (gtk_text_view_insert_emoji), text_view);
           gtk_widget_show (menuitem);
-          gtk_menu_shell_append (GTK_MENU_SHELL (priv->popup_menu), menuitem);
+          if (g_getenv ("GTKM_INSERT_EMOJI") != FALSE)
+            gtk_menu_shell_append (GTK_MENU_SHELL (priv->popup_menu), menuitem);
         }
 
       g_signal_emit (text_view, signals[POPULATE_POPUP],