projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
115f607
)
colordialogbutton: Sync color
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 17 Jun 2023 15:37:22 +0000
(11:37 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 17 Jun 2023 15:52:37 +0000
(11:52 -0400)
Make sure the color of the swatch and the button
are initially in sync. As a side-effect, this
ensures that the swatch has its accessible label
computed at the outset.
gtk/gtkcolordialogbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcolordialogbutton.c
b/gtk/gtkcolordialogbutton.c
index 10f527febf12405cc03780d4ceb29740c7b717ad..dce03690d1a508d34a65f513ae0f6d5b9ffae5c3 100644
(file)
--- a/
gtk/gtkcolordialogbutton.c
+++ b/
gtk/gtkcolordialogbutton.c
@@
-141,6
+141,8
@@
gtk_color_dialog_button_init (GtkColorDialogButton *self)
GTK_PHASE_CAPTURE);
gtk_widget_add_controller (self->button, GTK_EVENT_CONTROLLER (source));
gtk_widget_add_css_class (self->button, "color");
+
+ gtk_color_dialog_button_set_rgba (self, &(GdkRGBA) { 0.75, 0.25, 0.25, 1.0 });
}
static void