From 1019fcd2fc788b615ec0d25fe120cce4c7c13348 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 13 Jun 2012 01:13:50 +0200 Subject: shell: Use GdkRGBA for annotations Use the GdkRGBA API on EvAnnotation, and on GtkColorChooser. taken from: https://git.gnome.org/browse/evince/commit/?id=c523ef8 --- shell/ev-window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shell/ev-window.c') diff --git a/shell/ev-window.c b/shell/ev-window.c index 066655d9..b82d137f 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -7052,7 +7052,7 @@ ev_view_popup_cmd_annot_properties (GtkAction *action, if (window->priv->document->iswebdocument == TRUE ) return; const gchar *author; - GdkColor color; + GdkRGBA rgba; gdouble opacity; gboolean popup_is_open; EvAnnotationPropertiesDialog *dialog; @@ -7075,8 +7075,8 @@ ev_view_popup_cmd_annot_properties (GtkAction *action, if (ev_annotation_markup_set_label (EV_ANNOTATION_MARKUP (annot), author)) mask |= EV_ANNOTATIONS_SAVE_LABEL; - ev_annotation_properties_dialog_get_color (dialog, &color); - if (ev_annotation_set_color (annot, &color)) + ev_annotation_properties_dialog_get_rgba (dialog, &rgba); + if (ev_annotation_set_rgba (annot, &rgba)) mask |= EV_ANNOTATIONS_SAVE_COLOR; opacity = ev_annotation_properties_dialog_get_opacity (dialog); -- cgit v1.2.1