diff options
| author | Victor Kareh <[email protected]> | 2026-03-16 14:58:57 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-03-16 15:22:29 -0400 |
| commit | 370ef4ba3ccf88bec959a647249f8f720204cc17 (patch) | |
| tree | 3be2e2f2c7b604a8b724c5daa853a58f22997cd1 /src/terminal-profile.c | |
| parent | 40a129a26d9006e51dd63ddcde6cd2e210d30b92 (diff) | |
| download | mate-terminal-fix-color-scheme-combo.tar.bz2 mate-terminal-fix-color-scheme-combo.tar.xz | |
profile-editor: fix color scheme combo not restoring selectionfix-color-scheme-combo
The built-in color scheme dropdown always showed "Custom" when reopening
the profile editor. Two bugs were present:
- color comparison was called as pointer-to-pointer comparison, which
always fails.
- gdk_rgba_equal does exact floating-point comparison, which is too
strict for colors that have been round-tripped through GSettings
string serialization. Using the fuzzy rgba_equal function fixes that.
Fixes #486
Diffstat (limited to 'src/terminal-profile.c')
| -rw-r--r-- | src/terminal-profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal-profile.c b/src/terminal-profile.c index f789f66..69bf5ac 100644 --- a/src/terminal-profile.c +++ b/src/terminal-profile.c @@ -311,7 +311,7 @@ static GQuark gsettings_key_quark; G_DEFINE_TYPE_WITH_PRIVATE (TerminalProfile, terminal_profile, G_TYPE_OBJECT); /* gdk_rgba_equal is too strict! */ -static gboolean +gboolean rgba_equal (const GdkRGBA *a, const GdkRGBA *b) { |
