summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
authorGiselle Machado <[email protected]>2014-06-19 12:50:40 +0200
committerraveit65 <[email protected]>2017-08-28 16:04:00 +0200
commitf071e6bc375f8107e92e88fe5b55268f5a127693 (patch)
tree383e116183e788680809a40fe5ef9d05ae67600a /libdocument
parent4cd8ca27cdc099338dbc09f192231de9d6390071 (diff)
downloadatril-f071e6bc375f8107e92e88fe5b55268f5a127693.tar.bz2
atril-f071e6bc375f8107e92e88fe5b55268f5a127693.tar.xz
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
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-annotation.c2
1 files changed, 1 insertions, 1 deletions
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;
}