After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784914 - Mark classes not derived from as final
Mark classes not derived from as final
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-07-13 15:54 UTC by astian
Modified: 2017-07-23 17:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[RFC PATCH] libview: Make class EvDocumentModel final (3.27 KB, patch)
2017-07-13 15:54 UTC, astian
committed Details | Review

Description astian 2017-07-13 15:54:54 UTC
Created attachment 355529 [details] [review]
[RFC PATCH] libview: Make class EvDocumentModel final

As I mentioned in this thread [0], I'm trying to learn about GObject and
Evince.  As I read GObject's documentation and Evince's code I sometimes find
what to my beginner eyes seem like disagreements or discrepancies.  This
report/RFC is an attempt at understanding (and perhaps fix) one such
disagreement.

  0: https://mail.gnome.org/archives/evince-list/2017-July/msg00000.html

The attached patch is an initial test applied to a single class to serve as
RFC.  If deemed appropriate then analogous changes should be applied to other
classes.

Thanks.
Comment 1 Bastien Nocera 2017-07-19 16:11:00 UTC
Review of attachment 355529 [details] [review]:

Looks fine to me.
Comment 2 Carlos Garcia Campos 2017-07-22 06:09:10 UTC
Comment on attachment 355529 [details] [review]
[RFC PATCH] libview: Make class EvDocumentModel final

Pushed to git master, thanks.
Comment 3 Carlos Garcia Campos 2017-07-23 08:37:27 UTC
I didn't close this because the title says "classes" but the committed patch only does it for one, so I assumed more patches will be submitted. Anyway, feel free to reopen if you wans to attach more patches here.
Comment 4 astian 2017-07-23 17:45:35 UTC
comment #3:
> I didn't close this because the title says "classes" but the committed
> patch only does it for one, so I assumed more patches will be
> submitted.

Yes that's what I had in mind.  Seems like there are many places where
similar changes could be made.

> Anyway, feel free to reopen if you wans to attach more
> patches here.