summarylogtreecommitdiffstats
path: root/popovers__color-chooser.patch
blob: 2e6a89f05cdd25dd9559bb1581f9781cfc4786e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: src/gtk+-3.24.13/gtk/gtkcolorswatch.c
===================================================================
--- src.orig/gtk+-3.24.13/gtk/gtkcolorswatch.c
+++ src/gtk+-3.24.13/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;