[evince] Change color of annotation window



commit d23d6c17ba90731336936acda1561dae3a754dd4
Author: Giselle Machado <giselle mnr gmail com>
Date:   Thu Jun 19 12:50:40 2014 +0200

    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

 libdocument/ev-annotation.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c
index f107bac..5309f06 100644
--- a/libdocument/ev-annotation.c
+++ b/libdocument/ev-annotation.c
@@ -580,7 +580,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;
 }
@@ -627,6 +626,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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]