From f071e6bc375f8107e92e88fe5b55268f5a127693 Mon Sep 17 00:00:00 2001 From: Giselle Machado Date: Thu, 19 Jun 2014 12:50:40 +0200 Subject: Change color of annotation window When the color of the annotation window is chosen in the properties dialog and apply is clicked, the color of the window changes immediately. Fixed by making ev_annotation_set_rgba send both "color" and "rgba" signals. https://bugzilla.gnome.org/show_bug.cgi?id=725571 origin commit: https://git.gnome.org/browse/evince/commit/?id=d23d6c1 --- libdocument/ev-annotation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c index 1120a3a9..9e918b2a 100644 --- a/libdocument/ev-annotation.c +++ b/libdocument/ev-annotation.c @@ -574,7 +574,6 @@ ev_annotation_set_color (EvAnnotation *annot, rgba.alpha = 1.; ev_annotation_set_rgba (annot, &rgba); - g_object_notify (G_OBJECT (annot), "color"); return TRUE; } @@ -621,6 +620,7 @@ ev_annotation_set_rgba (EvAnnotation *annot, annot->rgba = *rgba; g_object_notify (G_OBJECT (annot), "rgba"); + g_object_notify (G_OBJECT (annot), "color"); return TRUE; } -- cgit v1.2.1