summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorChristian Persch <[email protected]>2012-06-13 01:13:50 +0200
committerraveit65 <[email protected]>2017-08-14 20:02:44 +0200
commit1019fcd2fc788b615ec0d25fe120cce4c7c13348 (patch)
tree95cd1c6067d84ae9bef5bae2539d85db45a7c474 /shell/ev-window.c
parent0b8edc9752cc3eef784366e95f038aa442575c71 (diff)
downloadatril-1019fcd2fc788b615ec0d25fe120cce4c7c13348.tar.bz2
atril-1019fcd2fc788b615ec0d25fe120cce4c7c13348.tar.xz
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
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c6
1 files changed, 3 insertions, 3 deletions
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);