[evince] libdocument: Annotate deprecated function



commit 8d6d1a28914a67c10be6a21e24104be4fe1ddd9e
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Sat Jul 4 19:25:56 2020 -0400

    libdocument: Annotate deprecated function
    
    Add deprecation guards, and annotate the function to mention
    the version it has been deprecated, plus add to serve as a
    visual cue for the deprecation guard

 libdocument/ev-document-misc.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c
index ba77bf3c..bcb11cb4 100644
--- a/libdocument/ev-document-misc.c
+++ b/libdocument/ev-document-misc.c
@@ -318,7 +318,17 @@ ev_document_misc_get_page_border_size (gint       page_width,
        }
 }
 
-
+/**
+ * ev_document_misc_paint_one_page:
+ * @cr: a #cairo_tEvannotation
+ * @widget a #GtkWidget
+ * @area: a #GdkRectangle
+ * @border: a #GtkBorder
+ * @highlight: whether to highlight the text
+ * @inverted_colors: whether to invert colors
+ *
+ * Deprecated: 3.10.
+ */
 void
 ev_document_misc_paint_one_page (cairo_t      *cr,
                                 GtkWidget    *widget,
@@ -327,6 +337,7 @@ ev_document_misc_paint_one_page (cairo_t      *cr,
                                 gboolean      highlight,
                                 gboolean      inverted_colors)
 {
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
        GtkStyleContext *context = gtk_widget_get_style_context (widget);
        GtkStateFlags state = gtk_widget_get_state_flags (widget);
         GdkRGBA fg, bg, shade_bg;
@@ -364,6 +375,7 @@ ev_document_misc_paint_one_page (cairo_t      *cr,
                         border->right - border->left,
                         border->right - border->left);
        cairo_fill (cr);
+G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 cairo_surface_t *


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