diff options
author | Manuel Hüsers | 2016-08-12 13:04:11 +0200 |
---|---|---|
committer | Manuel Hüsers | 2016-08-12 13:05:17 +0200 |
commit | 28d6a0bf0707a2f8bab7c5d9d0eb66d464baf76b (patch) | |
tree | 44e408de10e74654cd2e385a4c31fe1bdb33f523 /palette-color.patch | |
parent | 4b28daf206e47f01b2c16704eb645c8d73a7c3b2 (diff) | |
download | aur-28d6a0bf0707a2f8bab7c5d9d0eb66d464baf76b.tar.gz |
New release
Adds new upstream patches
Diffstat (limited to 'palette-color.patch')
-rw-r--r-- | palette-color.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/palette-color.patch b/palette-color.patch new file mode 100644 index 000000000000..f5924094e62a --- /dev/null +++ b/palette-color.patch @@ -0,0 +1,40 @@ +From 2a10e0ed7d6210b0522ffc2faf8483c64f1d183d Mon Sep 17 00:00:00 2001 +From: Egmont Koblinger <egmont@gmail.com> +Date: Fri, 22 Jul 2016 16:42:14 +0200 +Subject: profile: editor: Properly initialize the first palette color + +https://bugzilla.gnome.org/show_bug.cgi?id=768850 +(cherry picked from commit 6447aded26416e49bf5fdce8a8fd13c16c0ebb44) +--- + src/profile-editor.c | 11 +++-------- + 1 file changed, 3 insertions(+), 8 deletions(-) + +diff --git a/src/profile-editor.c b/src/profile-editor.c +index ff26df6..82cc7a9 100644 +--- a/src/profile-editor.c ++++ b/src/profile-editor.c +@@ -405,18 +405,13 @@ profile_palette_notify_colorpickers_cb (GSettings *profile, + for (i = 0; i < n_colors; i++) + { + char name[32]; +- GdkRGBA old_color; + + g_snprintf (name, sizeof (name), "palette-colorpicker-%" G_GSIZE_FORMAT, i + 1); + w = (GtkWidget *) gtk_builder_get_object (builder, name); + +- gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (w), &old_color); +- if (!rgba_equal (&old_color, &colors[i])) +- { +- g_signal_handlers_block_by_func (w, G_CALLBACK (palette_color_notify_cb), profile); +- gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (w), &colors[i]); +- g_signal_handlers_unblock_by_func (w, G_CALLBACK (palette_color_notify_cb), profile); +- } ++ g_signal_handlers_block_by_func (w, G_CALLBACK (palette_color_notify_cb), profile); ++ gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (w), &colors[i]); ++ g_signal_handlers_unblock_by_func (w, G_CALLBACK (palette_color_notify_cb), profile); + } + } + +-- +cgit v0.12 + |