summaryrefslogtreecommitdiff
path: root/other__hide-insert-emoji.patch
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-08-18 15:24:42 -0400
committerB. Stack <bgstack15@gmail.com>2021-08-18 15:24:42 -0400
commit76447c4a5b6c31f9aec0834353e017eeae77f9c4 (patch)
treeec9b6ee857805269eae8a63ea89acf3e1bf3a21f /other__hide-insert-emoji.patch
parentUpdate to 3.24.29 (diff)
downloadgtk3-classic-build-gtk3-76447c4a5b6c31f9aec0834353e017eeae77f9c4.tar.gz
gtk3-classic-build-gtk3-76447c4a5b6c31f9aec0834353e017eeae77f9c4.tar.bz2
gtk3-classic-build-gtk3-76447c4a5b6c31f9aec0834353e017eeae77f9c4.zip
3.24.29 for fc33
Diffstat (limited to 'other__hide-insert-emoji.patch')
-rw-r--r--other__hide-insert-emoji.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/other__hide-insert-emoji.patch b/other__hide-insert-emoji.patch
new file mode 100644
index 0000000..4d65906
--- /dev/null
+++ b/other__hide-insert-emoji.patch
@@ -0,0 +1,28 @@
+Index: b/gtk/gtkentry.c
+===================================================================
+--- a/gtk/gtkentry.c
++++ b/gtk/gtkentry.c
+@@ -9627,7 +9627,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/gtktextview.c
+===================================================================
+--- a/gtk/gtktextview.c
++++ b/gtk/gtktextview.c
+@@ -9555,7 +9555,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],
bgstack15