mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
colorbutton: Don't add a customize menu
The color swatch in the button does not need a context menu. Turn it off.
This commit is contained in:
parent
8991275fbd
commit
22211f29fb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user