[gtk/matthiasc/for-master: 21/21] colorbutton: Don't add a customize menu
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 21/21] colorbutton: Don't add a customize menu
- Date: Sat, 4 Apr 2020 04:29:55 +0000 (UTC)
commit 22211f29fbf87c1a4598165a5bec65ec62c096f9
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Apr 3 17:42:22 2020 -0400
colorbutton: Don't add a customize menu
The color swatch in the button does not need a
context menu. Turn it off.
gtk/gtkcolorbutton.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c
index 13dbc36c79..76048eb185 100644
--- a/gtk/gtkcolorbutton.c
+++ b/gtk/gtkcolorbutton.c
@@ -266,6 +266,7 @@ gtk_color_button_init (GtkColorButton *button)
priv->swatch = gtk_color_swatch_new ();
gtk_widget_set_can_focus (priv->swatch, FALSE);
+ g_object_set (priv->swatch, "has-menu", FALSE, NULL);
layout = gtk_widget_create_pango_layout (GTK_WIDGET (button), "Black");
pango_layout_get_pixel_extents (layout, NULL, &rect);
g_object_unref (layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]