[evince/wip/gpoo/gtk4-rebase-port: 8/72] ev-annotation: remove deprecated ev_annotation_set_modified_from_time




commit ade186f182044bada4ede952967acce0626983b9
Author: Qiu Wenbo <qiuwenbo kylinos com cn>
Date:   Mon Dec 6 23:57:57 2021 +0800

    ev-annotation: remove deprecated ev_annotation_set_modified_from_time
    
    Signed-off-by: Qiu Wenbo <qiuwenbo kylinos com cn>

 libdocument/ev-annotation.c | 41 -----------------------------------------
 libdocument/ev-annotation.h |  7 -------
 2 files changed, 48 deletions(-)
---
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c
index aee5548a0..4adf70798 100644
--- a/libdocument/ev-annotation.c
+++ b/libdocument/ev-annotation.c
@@ -511,47 +511,6 @@ ev_annotation_set_modified (EvAnnotation *annot,
        return TRUE;
 }
 
-/**
- * ev_annotation_set_modified_from_time:
- * @annot: an #EvAnnotation
- * @utime: a #GTime
- *
- * Set the last modification date of @annot to @utime.  You can
- * monitor changes to the last modification date by connecting to the
- * notify::modified sinal on @annot.
- * For the time-format used, see ev_document_misc_format_date().
- *
- * Returns: %TRUE if the last modified date has been updated, %FALSE otherwise.
- *
- * Deprecated: 3.42: use ev_annotation_set_modified_from_time_t instead as GTime is
- *                   deprecated because it is not year-2038 safe
- */
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-gboolean
-ev_annotation_set_modified_from_time (EvAnnotation *annot,
-                                     GTime         utime)
-{
-       gchar *modified;
-
-       g_return_val_if_fail (EV_IS_ANNOTATION (annot), FALSE);
-
-       modified = ev_document_misc_format_date (utime);
-
-       if (g_strcmp0 (annot->modified, modified) == 0) {
-               g_free (modified);
-               return FALSE;
-       }
-
-       if (annot->modified)
-               g_free (annot->modified);
-       annot->modified = modified;
-
-       g_object_notify (G_OBJECT (annot), "modified");
-
-       return TRUE;
-}
-G_GNUC_END_IGNORE_DEPRECATIONS
-
 /**
  * ev_annotation_set_modified_from_time_t:
  * @annot: an #EvAnnotation
diff --git a/libdocument/ev-annotation.h b/libdocument/ev-annotation.h
index 75105030d..2229fde8e 100644
--- a/libdocument/ev-annotation.h
+++ b/libdocument/ev-annotation.h
@@ -145,13 +145,6 @@ gboolean             ev_annotation_set_modified              (EvAnnotation
 EV_PUBLIC
 gboolean             ev_annotation_set_modified_from_time_t  (EvAnnotation           *annot,
                                                              time_t                  utime);
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-EV_DEPRECATED_FOR(ev_annotaion_set_modified_from_time_t)
-EV_PUBLIC
-gboolean             ev_annotation_set_modified_from_time    (EvAnnotation           *annot,
-                                                             GTime                   utime);
-G_GNUC_END_IGNORE_DEPRECATIONS
-
 EV_PUBLIC
 void                 ev_annotation_get_rgba                  (EvAnnotation           *annot,
                                                               GdkRGBA                *rgba);


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