diff options
author | B. Stack <bgstack15@gmail.com> | 2021-08-18 15:24:42 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2021-08-18 15:24:42 -0400 |
commit | 76447c4a5b6c31f9aec0834353e017eeae77f9c4 (patch) | |
tree | ec9b6ee857805269eae8a63ea89acf3e1bf3a21f /popovers__color-chooser.patch | |
parent | Update to 3.24.29 (diff) | |
download | gtk3-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.patch | 22 |
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; + |