summaryrefslogtreecommitdiff
path: root/popovers__color-chooser.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 /popovers__color-chooser.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 'popovers__color-chooser.patch')
-rw-r--r--popovers__color-chooser.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/popovers__color-chooser.patch b/popovers__color-chooser.patch
new file mode 100644
index 0000000..c26b2b4
--- /dev/null
+++ b/popovers__color-chooser.patch
@@ -0,0 +1,22 @@
+Index: b/gtk/gtkcolorswatch.c
+===================================================================
+--- a/gtk/gtkcolorswatch.c
++++ b/gtk/gtkcolorswatch.c
+@@ -349,6 +349,17 @@ do_popup (GtkColorSwatch *swatch)
+ {
+ if (swatch->priv->popover == NULL)
+ {
++ GtkWidget *item;
++ swatch->priv->popover = gtk_menu_new ();
++ item = gtk_menu_item_new_with_mnemonic (_ ("C_ustomize"));
++ g_signal_connect_swapped (item, "activate", G_CALLBACK (emit_customize), swatch);
++ gtk_widget_set_visible (GTK_WIDGET (item), TRUE);
++ gtk_menu_shell_append (GTK_MENU_SHELL (swatch->priv->popover), item);
++ }
++ gtk_menu_popup_at_pointer (GTK_MENU (swatch->priv->popover), NULL);
++ return;
++ if (swatch->priv->popover == NULL)
++ {
+ GtkWidget *box;
+ GtkWidget *item;
+
bgstack15