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 763712 - Use G_DECLARE_FINAL_TYPE for final classes
Use G_DECLARE_FINAL_TYPE for final classes
Status: RESOLVED FIXED
Product: gnome-photos
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
Depends on: 780083
Blocks: 788174
 
 
Reported: 2016-03-15 16:56 UTC by Debarshi Ray
Modified: 2017-09-27 02:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
photos-embed : Use G_DECLARE_FINAL_TYPE for PhotosEmbed class In this commit, we are using G_DECLARE_FINAL_TYPE, as the PhotosEmbed class has not been further subclassed. https://bugzilla.gnome.org/show_bug.cgi?id=763712 (1.57 KB, patch)
2016-07-01 19:10 UTC, Shivam Tripathi
needs-work Details | Review
photos-embed : Use G_DECLARE_FINAL_TYPE with the class (1.57 KB, patch)
2016-07-01 20:53 UTC, Shivam Tripathi
committed Details | Review
embed: Use G_DECLARE_FINAL_TYPE (1.88 KB, patch)
2016-07-01 22:19 UTC, Debarshi Ray
committed Details | Review
base-model: Use G_DECLARE_FINAL_TYPE (1.52 KB, patch)
2016-07-02 18:07 UTC, Shivam Tripathi
none Details | Review
base-model: Use G_DECLARE_FINAL_TYPE (1.52 KB, patch)
2016-07-02 18:22 UTC, Shivam Tripathi
none Details | Review
base-model: Use G_DECLARE_FINAL_TYPE (1.61 KB, patch)
2016-07-07 12:23 UTC, Shivam Tripathi
committed Details | Review
camera_cache: Use G_DECLARE_FINAL_TYPE (1.72 KB, patch)
2016-07-07 13:06 UTC, Shivam Tripathi
committed Details | Review
base-model: Use G_DECLARE_FINAL_TYPE (1.57 KB, patch)
2016-07-07 17:19 UTC, Debarshi Ray
committed Details | Review
camera-cache: Use G_DECLARE_FINAL_TYPE (1.68 KB, patch)
2016-07-07 17:25 UTC, Debarshi Ray
committed Details | Review
create_collection_icon_job: Use G_DECLARE_FINAL_TYPE (2.11 KB, patch)
2016-07-07 18:40 UTC, Shivam Tripathi
needs-work Details | Review
create_collection_job: Use G_DECLARE_FINAL_TYPE (1.90 KB, patch)
2016-07-07 18:49 UTC, Shivam Tripathi
none Details | Review
delete_item_job: Use G_DECLARE_FINAL_TYPE (1.72 KB, patch)
2016-07-07 18:56 UTC, Shivam Tripathi
none Details | Review
dlna_renderers_dialog: Use G_DECLARE_FINAL_TYPE (1.92 KB, patch)
2016-07-07 19:15 UTC, Shivam Tripathi
none Details | Review
dlna_renderers_manager: Use G_DECLARE_FINAL_TYPE (1.92 KB, patch)
2016-07-07 19:21 UTC, Shivam Tripathi
none Details | Review
done_notification: Use G_DECLARE_FINAL_TYPE (1.80 KB, patch)
2016-07-07 19:26 UTC, Shivam Tripathi
none Details | Review
dropdown: Use G_DECLARE_FINAL_TYPE (1.62 KB, patch)
2016-07-07 19:30 UTC, Shivam Tripathi
committed Details | Review
create-collection-icon-job: Use G_DECLARE_FINAL_TYPE (2.11 KB, patch)
2016-07-07 19:40 UTC, Shivam Tripathi
committed Details | Review
create-collection-job: Use G_DECLARE_FINAL_TYPE (1.90 KB, patch)
2016-07-07 19:41 UTC, Shivam Tripathi
committed Details | Review
delete-item-job: Use G_DECLARE_FINAL_TYPE (1.72 KB, patch)
2016-07-07 19:43 UTC, Shivam Tripathi
none Details | Review
dlna-renderers-dialog: Use G_DECLARE_FINAL_TYPE (1.92 KB, patch)
2016-07-07 19:44 UTC, Shivam Tripathi
committed Details | Review
dlna-renderers-manager: Use G_DECLARE_FINAL_TYPE (1.92 KB, patch)
2016-07-07 19:45 UTC, Shivam Tripathi
none Details | Review
done-notification: Use G_DECLARE_FINAL_TYPE (1.80 KB, patch)
2016-07-07 19:47 UTC, Shivam Tripathi
committed Details | Review
create-collection-job: Use G_DECLARE_FINAL_TYPE (1.95 KB, patch)
2016-07-07 21:55 UTC, Debarshi Ray
committed Details | Review
create-collection-icon-job: Use G_DECLARE_FINAL_TYPE (2.27 KB, patch)
2016-07-08 05:23 UTC, Debarshi Ray
committed Details | Review
dropdown: Use G_DECLARE_FINAL_TYPE (1.58 KB, patch)
2016-07-09 14:11 UTC, Debarshi Ray
committed Details | Review
delete-item-job: Use G_DECLARE_FINAL_TYPE (1.68 KB, patch)
2016-07-12 07:46 UTC, Debarshi Ray
committed Details | Review
dlna-renderers-dialog: Use G_DECLARE_FINAL_TYPE (1.97 KB, patch)
2016-07-12 07:52 UTC, Debarshi Ray
committed Details | Review
dlna-renderers-manager: Use G_DECLARE_FINAL_TYPE (1.98 KB, patch)
2016-07-12 08:01 UTC, Debarshi Ray
committed Details | Review
done-notification: Use G_DECLARE_FINAL_TYPE (1.75 KB, patch)
2016-07-12 08:09 UTC, Debarshi Ray
committed Details | Review
done-notification: Restore the photos_done_notification_new declaration (979 bytes, patch)
2016-07-12 21:51 UTC, Debarshi Ray
committed Details | Review
error-box : Use G_DECLARE_FINAL_TYPE (1.63 KB, patch)
2016-08-28 06:14 UTC, Shivam Tripathi
committed Details | Review
empty-results-box : Use G_DECLARE_FINAL_TYPE (1.80 KB, patch)
2016-08-28 06:16 UTC, Shivam Tripathi
committed Details | Review
application: Remove the pointer for the object method signal handler (1.70 KB, patch)
2016-10-05 09:43 UTC, Debarshi Ray
committed Details | Review
application: Use G_DECLARE_FINAL_TYPE (1.62 KB, patch)
2016-10-05 09:45 UTC, Debarshi Ray
committed Details | Review
local-item: Use G_DECLARE_FINAL_TYPE (1.64 KB, patch)
2016-10-06 09:52 UTC, Debarshi Ray
committed Details | Review
facebook-item: Use G_DECLARE_FINAL_TYPE (2.02 KB, patch)
2016-10-06 09:52 UTC, Debarshi Ray
committed Details | Review
flickr-item: Use G_DECLARE_FINAL_TYPE (1.67 KB, patch)
2016-10-06 09:53 UTC, Debarshi Ray
committed Details | Review
google-item: Use G_DECLARE_FINAL_TYPE (1.90 KB, patch)
2016-10-06 09:53 UTC, Debarshi Ray
committed Details | Review
media-server-item: Use G_DECLARE_FINAL_TYPE (2.12 KB, patch)
2016-10-06 09:54 UTC, Debarshi Ray
committed Details | Review
collection-icon-watcher: Remove the vfunc for the default handler (1.84 KB, patch)
2016-10-07 06:54 UTC, Debarshi Ray
committed Details | Review
collection-icon-watcher: Use G_DECLARE_FINAL_TYPE (2.23 KB, patch)
2016-10-07 06:55 UTC, Debarshi Ray
committed Details | Review
delete-notification: Use G_DECLARE_FINAL_TYPE (2.07 KB, patch)
2016-10-07 06:55 UTC, Debarshi Ray
committed Details | Review
widget-shader: Use G_DECLARE_FINAL_TYPE (1.96 KB, patch)
2016-10-12 18:07 UTC, Debarshi Ray
committed Details | Review
dlna-renderer: Use G_DECLARE_FINAL_TYPE (2.06 KB, patch)
2016-10-12 18:08 UTC, Debarshi Ray
committed Details | Review
edit-palette: Remove the pointer for the object method signal handler (1.69 KB, patch)
2016-11-18 15:36 UTC, Debarshi Ray
committed Details | Review
edit-palette: Use G_DECLARE_FINAL_TYPE (1.62 KB, patch)
2016-11-18 15:36 UTC, Debarshi Ray
committed Details | Review
view-model: Use G_DECLARE_FINAL_TYPE (1.80 KB, patch)
2016-11-18 15:37 UTC, Debarshi Ray
committed Details | Review
edit-palette-row: Use G_DECLARE_FINAL_TYPE (1.77 KB, patch)
2016-11-18 15:37 UTC, Debarshi Ray
committed Details | Review
export-dialog: Use G_DECLARE_FINAL_TYPE (1.67 KB, patch)
2016-11-18 15:38 UTC, Debarshi Ray
committed Details | Review
view-container: Use G_DECLARE_FINAL_TYPE (1.70 KB, patch)
2016-11-18 15:38 UTC, Debarshi Ray
committed Details | Review
export-notification: Use G_DECLARE_FINAL_TYPE (1.81 KB, patch)
2016-11-18 15:42 UTC, Debarshi Ray
committed Details | Review
update-mtime-job: Use G_DECLARE_FINAL_TYPE (1.72 KB, patch)
2016-11-22 11:17 UTC, Debarshi Ray
committed Details | Review
image-view: Remove the pointers for the object method signal handlers (2.41 KB, patch)
2016-11-22 11:17 UTC, Debarshi Ray
committed Details | Review
fetch-collection-state-job: Use G_DECLARE_FINAL_TYPE (2.40 KB, patch)
2016-11-27 01:23 UTC, Debarshi Ray
committed Details | Review
fetch-collections-job: Use G_DECLARE_FINAL_TYPE (1.95 KB, patch)
2016-11-27 01:24 UTC, Debarshi Ray
committed Details | Review
fetch-ids-job: Use G_DECLARE_FINAL_TYPE (1.80 KB, patch)
2016-11-27 01:24 UTC, Debarshi Ray
committed Details | Review
fetch-metas-job: Use G_DECLARE_FINAL_TYPE (2.01 KB, patch)
2016-11-27 01:25 UTC, Debarshi Ray
committed Details | Review
image-view: Use G_DECLARE_FINAL_TYPE (1.56 KB, patch)
2016-11-27 01:26 UTC, Debarshi Ray
committed Details | Review
notification-manager: Use G_DECLARE_FINAL_TYPE (2.02 KB, patch)
2016-11-27 15:22 UTC, Debarshi Ray
committed Details | Review
header-bar: Use G_DECLARE_FINAL_TYPE (1.82 KB, patch)
2016-11-29 10:44 UTC, Debarshi Ray
committed Details | Review
preview-nav-buttons: Use G_DECLARE_FINAL_TYPE (2.22 KB, patch)
2017-01-04 20:37 UTC, Debarshi Ray
committed Details | Review
tool-crop: Use G_DECLARE_FINAL_TYPE (1.90 KB, patch)
2017-01-04 20:37 UTC, Debarshi Ray
committed Details | Review
tool-colors: Use G_DECLARE_FINAL_TYPE (1.97 KB, patch)
2017-01-04 20:38 UTC, Debarshi Ray
committed Details | Review
tool-enhance: Use G_DECLARE_FINAL_TYPE (2.00 KB, patch)
2017-01-04 20:38 UTC, Debarshi Ray
committed Details | Review
tool-filters: Use G_DECLARE_FINAL_TYPE (1.99 KB, patch)
2017-01-04 20:39 UTC, Debarshi Ray
committed Details | Review
indexing-notification: Use G_DECLARE_FINAL_TYPE (2.02 KB, patch)
2017-02-09 08:39 UTC, Debarshi Ray
committed Details | Review
organize-collection-dialog: Use G_DECLARE_FINAL_TYPE (2.19 KB, patch)
2017-02-09 08:39 UTC, Debarshi Ray
committed Details | Review
tracker-overview-controller: Use G_DECLARE_FINAL_TYPE (2.27 KB, patch)
2017-02-16 08:34 UTC, Debarshi Ray
committed Details | Review
tracker-queue: Use G_DECLARE_FINAL_TYPE (1.74 KB, patch)
2017-02-16 08:34 UTC, Debarshi Ray
committed Details | Review
tracker-search-controller: Use G_DECLARE_FINAL_TYPE (2.21 KB, patch)
2017-02-16 08:35 UTC, Debarshi Ray
committed Details | Review
item-manager: Remove the pointers for the object method signal handlers (5.90 KB, patch)
2017-02-16 08:35 UTC, Debarshi Ray
committed Details | Review
item-manager: Use G_DECLARE_FINAL_TYPE (2.06 KB, patch)
2017-02-16 08:36 UTC, Debarshi Ray
committed Details | Review
pipeline: Use G_DECLARE_FINAL_TYPE (1.58 KB, patch)
2017-02-28 10:03 UTC, Debarshi Ray
committed Details | Review
main-toolbar: Use G_DECLARE_FINAL_TYPE (1.65 KB, patch)
2017-02-28 10:03 UTC, Debarshi Ray
committed Details | Review
main-window: Use G_DECLARE_FINAL_TYPE (1.70 KB, patch)
2017-02-28 10:03 UTC, Debarshi Ray
committed Details | Review
offset-collections-controller: Use G_DECLARE_FINAL_TYPE (2.30 KB, patch)
2017-03-02 07:58 UTC, Debarshi Ray
committed Details | Review
offset-favorites-controller: Use G_DECLARE_FINAL_TYPE (2.26 KB, patch)
2017-03-02 07:58 UTC, Debarshi Ray
committed Details | Review
offset-overview-controller: Use G_DECLARE_FINAL_TYPE (2.24 KB, patch)
2017-03-15 09:00 UTC, Debarshi Ray
committed Details | Review
offset-search-controller: Use G_DECLARE_FINAL_TYPE (2.18 KB, patch)
2017-03-15 09:01 UTC, Debarshi Ray
committed Details | Review
operation-insta-curve: Use G_DECLARE_FINAL_TYPE (2.22 KB, patch)
2017-03-16 06:59 UTC, Debarshi Ray
none Details | Review
operation-insta-filter: Use G_DECLARE_FINAL_TYPE (2.23 KB, patch)
2017-03-16 06:59 UTC, Debarshi Ray
none Details | Review
operation-insta-hefe-curve: Use G_DECLARE_FINAL_TYPE (2.44 KB, patch)
2017-03-16 07:00 UTC, Debarshi Ray
none Details | Review
gegl: Add autocleanups for GeglOperation and its relevant sub-classes (1.43 KB, patch)
2017-03-21 08:53 UTC, Debarshi Ray
committed Details | Review
operation-insta-curve: Use G_DECLARE_FINAL_TYPE (2.25 KB, patch)
2017-03-21 08:54 UTC, Debarshi Ray
committed Details | Review
operation-insta-filter: Use G_DECLARE_FINAL_TYPE (2.26 KB, patch)
2017-03-21 08:54 UTC, Debarshi Ray
committed Details | Review
operation-insta-hefe-curve: Use G_DECLARE_FINAL_TYPE (2.47 KB, patch)
2017-03-21 08:55 UTC, Debarshi Ray
committed Details | Review
operation-insta-hefe-vignette: Use G_DECLARE_FINAL_TYPE (2.46 KB, patch)
2017-03-21 08:55 UTC, Debarshi Ray
committed Details | Review
operation-insta-hefe: Use G_DECLARE_FINAL_TYPE (2.24 KB, patch)
2017-03-21 08:55 UTC, Debarshi Ray
committed Details | Review
operation-jpg-guess-sizes: Use G_DECLARE_FINAL_TYPE (2.31 KB, patch)
2017-03-21 08:56 UTC, Debarshi Ray
committed Details | Review
operation-png-guess-sizes: Use G_DECLARE_FINAL_TYPE (2.30 KB, patch)
2017-03-21 08:56 UTC, Debarshi Ray
committed Details | Review
operation-saturation: Use G_DECLARE_FINAL_TYPE (2.18 KB, patch)
2017-03-21 08:56 UTC, Debarshi Ray
committed Details | Review
photos-search-type: Use-G_DECLARE_FINAL_TYPE (1.45 KB, patch)
2017-03-22 20:43 UTC, Rashi Sah
needs-work Details | Review
search-type: Use-G_DECLARE_FINAL_TYPE (1.76 KB, patch)
2017-03-24 19:28 UTC, Rashi Sah
committed Details | Review
search-type: Use-G_DECLARE_FINAL_TYPE (1.76 KB, patch)
2017-03-24 20:44 UTC, Rashi Sah
none Details | Review
search-type: Use G_DECLARE_FINAL_TYPE (1.91 KB, patch)
2017-05-09 18:06 UTC, Debarshi Ray
committed Details | Review
organize-collection-model: Use G_DECLARE_FINAL_TYPE (2.43 KB, patch)
2017-06-15 21:55 UTC, Debarshi Ray
committed Details | Review
organize-collection-view: Use G_DECLARE_FINAL_TYPE (2.13 KB, patch)
2017-07-18 10:03 UTC, Debarshi Ray
committed Details | Review
print-notification: Use G_DECLARE_FINAL_TYPE (1.80 KB, patch)
2017-07-18 10:03 UTC, Debarshi Ray
committed Details | Review
tracker-favorites-controller: Use G_DECLARE_FINAL_TYPE (2.29 KB, patch)
2017-09-04 20:34 UTC, Umang Jain
committed Details | Review
tracker-collections-controller: Use G_DECLARE_FINAL_TYPE (2.35 KB, patch)
2017-09-04 20:34 UTC, Umang Jain
committed Details | Review
tool-filter-button: Use G_DECLARE_FINAL_TYPE (1.96 KB, patch)
2017-09-04 20:35 UTC, Umang Jain
committed Details | Review
spinner-box: Use G_DECLARE_FINAL_TYPE (1.73 KB, patch)
2017-09-04 20:36 UTC, Umang Jain
committed Details | Review
source-manager: Use G_DECLARE_FINAL_TYPE (1.68 KB, patch)
2017-09-04 20:45 UTC, Umang Jain
committed Details | Review
source: Use G_DECLARE_FINAL_TYPE (1.64 KB, patch)
2017-09-04 22:27 UTC, Umang Jain
committed Details | Review
single-item-job: Use G_DECLARE_FINAL_TYPE (1.76 KB, patch)
2017-09-04 22:27 UTC, Umang Jain
committed Details | Review
share-point-manager: Use G_DECLARE_FINAL_TYPE (1.90 KB, patch)
2017-09-04 22:28 UTC, Umang Jain
committed Details | Review
share-dialog: Use G_DECLARE_FINAL_TYPE (2.05 KB, patch)
2017-09-04 22:28 UTC, Umang Jain
committed Details | Review
set-collection-job: Use G_DECLARE_FINAL_TYPE (1.94 KB, patch)
2017-09-04 22:29 UTC, Umang Jain
committed Details | Review
print-setup: Use G_DECLARE_FINAL_TYPE (2.46 KB, patch)
2017-09-04 22:30 UTC, Umang Jain
none Details | Review
preview-view: Use G_DECLARE_FINAL_TYPE (1.62 KB, patch)
2017-09-04 22:53 UTC, Umang Jain
committed Details | Review
print-operation: Use G_DECLARE_FINAL_TYPE (1.72 KB, patch)
2017-09-04 22:54 UTC, Umang Jain
committed Details | Review
print-preview: Use G_DECLARE_FINAL_TYPE (2.59 KB, patch)
2017-09-04 23:00 UTC, Umang Jain
none Details | Review
print-preview: Use G_DECLARE_FINAL_TYPE (2.59 KB, patch)
2017-09-04 23:26 UTC, Umang Jain
none Details | Review
remote-display-manager: Use G_DECLARE_FINAL_TYPE (1.98 KB, patch)
2017-09-04 23:26 UTC, Umang Jain
committed Details | Review
search-match: Use G_DECLARE_FINAL_TYPE (1.90 KB, patch)
2017-09-04 23:27 UTC, Umang Jain
committed Details | Review
search-match-manager: Use G_DECLARE_FINAL_TYPE (1.88 KB, patch)
2017-09-04 23:27 UTC, Umang Jain
committed Details | Review
search-provider: Use G_DECLARE_FINAL_TYPE (1.87 KB, patch)
2017-09-04 23:28 UTC, Umang Jain
committed Details | Review
search-type-manager: Use G_DECLARE_FINAL_TYPE (1.90 KB, patch)
2017-09-04 23:29 UTC, Umang Jain
committed Details | Review
selection-toolbar: Use G_DECLARE_FINAL_TYPE (1.83 KB, patch)
2017-09-04 23:29 UTC, Umang Jain
committed Details | Review
overview-searchbar: Use G_DECLARE_FINAL_TYPE (1.88 KB, patch)
2017-09-04 23:55 UTC, Umang Jain
committed Details | Review
tool-filter-button: Use G_DECLARE_FINAL_TYPE (1.88 KB, patch)
2017-09-05 07:08 UTC, Debarshi Ray
committed Details | Review
spinner-box: Use G_DECLARE_FINAL_TYPE (1.65 KB, patch)
2017-09-05 08:02 UTC, Debarshi Ray
committed Details | Review
selection-controller: Remove the vfunc for the default handler (1.54 KB, patch)
2017-09-05 19:36 UTC, Umang Jain
committed Details | Review
selection-controller: Use G_DECLARE_FINAL_TYPE (1.84 KB, patch)
2017-09-05 19:36 UTC, Umang Jain
committed Details | Review
search-controller: Remove the vfunc for the default handler (1.59 KB, patch)
2017-09-05 19:37 UTC, Umang Jain
committed Details | Review
search-controller: Use G_DECLARE_FINAL_TYPE (1.74 KB, patch)
2017-09-05 19:37 UTC, Umang Jain
committed Details | Review
properties-dialog: Remove the vfunc for the default handler (1.46 KB, patch)
2017-09-05 19:38 UTC, Umang Jain
committed Details | Review
properties-dialog: Use G_DECLARE_FINAL_TYPE (1.77 KB, patch)
2017-09-05 19:39 UTC, Umang Jain
committed Details | Review
tracker-change-monitor: Remove the vfunc for the default handler (1.51 KB, patch)
2017-09-05 19:39 UTC, Umang Jain
committed Details | Review
tracker-change-monitor: Use G_DECLARE_FINAL_TYPE (2.00 KB, patch)
2017-09-05 19:40 UTC, Umang Jain
committed Details | Review
single-item-job: Use G_DECLARE_FINAL_TYPE (1.87 KB, patch)
2017-09-06 06:59 UTC, Debarshi Ray
committed Details | Review
search-match-manager: Use G_DECLARE_FINAL_TYPE (1.99 KB, patch)
2017-09-07 21:30 UTC, Debarshi Ray
committed Details | Review
search-type-manager: Use G_DECLARE_FINAL_TYPE (2.01 KB, patch)
2017-09-08 18:15 UTC, Debarshi Ray
committed Details | Review
selection-controller: Use G_DECLARE_FINAL_TYPE (1.85 KB, patch)
2017-09-13 09:26 UTC, Debarshi Ray
committed Details | Review
overview-searchbar: Use G_DECLARE_FINAL_TYPE (1.99 KB, patch)
2017-09-26 10:10 UTC, Debarshi Ray
committed Details | Review
print-preview: Use G_DECLARE_FINAL_TYPE (1.62 KB, patch)
2017-09-26 16:25 UTC, Umang Jain
committed Details | Review
print-setup: Use G_DECLARE_FINAL_TYPE (1.57 KB, patch)
2017-09-26 16:25 UTC, Umang Jain
committed Details | Review

Description Debarshi Ray 2016-03-15 16:56:39 UTC
We should switch to using G_DECLARE_FINAL_TYPE for all final classes (ie. classes without a private structure). See https://wiki.gnome.org/HowDoI/SubclassGObject for further details.

Please use a separate patch for each class to keep it manageable.
Comment 1 Shivam Tripathi 2016-07-01 19:10:30 UTC
Created attachment 330752 [details] [review]
photos-embed : Use G_DECLARE_FINAL_TYPE for PhotosEmbed class In this commit, we are using G_DECLARE_FINAL_TYPE, as the PhotosEmbed class has not been further subclassed. https://bugzilla.gnome.org/show_bug.cgi?id=763712
Comment 2 Debarshi Ray 2016-07-01 19:23:26 UTC
Review of attachment 330752 [details] [review]:

Thanks for the patch, Shivam.

The commit message needs some work. See:
https://wiki.gnome.org/Newcomers/CodeContributionWorkflow#Submitting_patches
https://wiki.gnome.org/Git/CommitMessages

Also, can you please capitalize your name properly as in the other git commits. I mention this because it shows up in the UI (specifically the about dialog).

A few other comments:

::: src/photos-embed.h
@@ +35,2 @@
 #define PHOTOS_TYPE_EMBED (photos_embed_get_type ())
 

Nitpick: this newline is no longer needed.

@@ -40,1 +38,1 @@
 

Ditto.

@@ +40,1 @@
 typedef struct _PhotosEmbed      PhotosEmbed;

This typedef shouldn't be needed. Any reason you kept it?
Comment 3 Shivam Tripathi 2016-07-01 20:53:13 UTC
Created attachment 330756 [details] [review]
photos-embed : Use G_DECLARE_FINAL_TYPE with the class

Use G_DECLARE_FINAL_TYPE with the class, as it has no private structure and has not been further subclassed.
Comment 4 Debarshi Ray 2016-07-01 22:19:03 UTC
Review of attachment 330756 [details] [review]:

This is much better. The commit message shouldn't exceed 72 characters per line, though.

I forgot to mention that we should bump the GLib requirement in configure.ac to 2.44.0.

::: src/photos-embed.h
@@ +35,2 @@
 #define PHOTOS_TYPE_EMBED (photos_embed_get_type ())
 

We still have a needless newline here.
Comment 5 Debarshi Ray 2016-07-01 22:19:53 UTC
Created attachment 330757 [details] [review]
embed: Use G_DECLARE_FINAL_TYPE

I took the liberty to fix it up.
Comment 6 Shivam Tripathi 2016-07-02 18:07:50 UTC
Created attachment 330798 [details] [review]
base-model: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 7 Shivam Tripathi 2016-07-02 18:12:07 UTC
Ok I missed typedef again. I am sending a new patch.
Comment 8 Shivam Tripathi 2016-07-02 18:22:42 UTC
Created attachment 330799 [details] [review]
base-model: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 9 Debarshi Ray 2016-07-07 07:39:15 UTC
Review of attachment 330799 [details] [review]:

Are you sure you attached a new patch? :) This is the same as attachment 330798 [details] [review].

::: src/photos-base-model.h
@@ +37,1 @@
 typedef struct _PhotosBaseModel      PhotosBaseModel;

We don't need this typedef either.
Comment 10 Shivam Tripathi 2016-07-07 12:23:09 UTC
Created attachment 330993 [details] [review]
base-model: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 11 Shivam Tripathi 2016-07-07 13:06:06 UTC
Created attachment 330995 [details] [review]
camera_cache: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 12 Debarshi Ray 2016-07-07 17:18:09 UTC
Review of attachment 330993 [details] [review]:

::: src/photos-base-model.h
@@ +34,2 @@
 #define PHOTOS_TYPE_BASE_MODEL (photos_base_model_get_type ())
+G_DECLARE_FINAL_TYPE(PhotosBaseModel, photos_base_model, PHOTOS, BASE_MODEL, GObject)

Nitpick: would be nice to have a whitespace before the opening parenthesis like we have elsewhere.
Comment 13 Debarshi Ray 2016-07-07 17:19:05 UTC
Created attachment 331007 [details] [review]
base-model: Use G_DECLARE_FINAL_TYPE

Added the whitespace and pushed to master.
Comment 14 Debarshi Ray 2016-07-07 17:24:23 UTC
Review of attachment 330995 [details] [review]:

Thanks for the patches, Shivam.

::: src/photos-camera-cache.h
@@ +29,2 @@
 #define PHOTOS_TYPE_CAMERA_CACHE (photos_camera_cache_get_type ())
+G_DECLARE_FINAL_TYPE(PhotosCameraCache, photos_camera_cache, PHOTOS, CAMERA_CACHE, GObject)

Nitpick: a whitespace before the opening parenthesis would be nice.
Comment 15 Debarshi Ray 2016-07-07 17:25:07 UTC
Created attachment 331008 [details] [review]
camera-cache: Use G_DECLARE_FINAL_TYPE

Pushed to master after adding the whitespace.
Comment 16 Shivam Tripathi 2016-07-07 18:40:44 UTC
Created attachment 331016 [details] [review]
create_collection_icon_job: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 17 Shivam Tripathi 2016-07-07 18:49:53 UTC
Created attachment 331018 [details] [review]
create_collection_job: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 18 Shivam Tripathi 2016-07-07 18:56:18 UTC
Created attachment 331019 [details] [review]
delete_item_job: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 19 Shivam Tripathi 2016-07-07 19:15:43 UTC
Created attachment 331020 [details] [review]
dlna_renderers_dialog: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 20 Shivam Tripathi 2016-07-07 19:21:45 UTC
Created attachment 331021 [details] [review]
dlna_renderers_manager: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 21 Debarshi Ray 2016-07-07 19:24:15 UTC
Review of attachment 331016 [details] [review]:

Thanks for the nice patch, Shivam.

It looks very good except a small niggle with the commit message. Don't use underscores. Instead, uses dashes. See the other commit messages for examples.
Comment 22 Shivam Tripathi 2016-07-07 19:26:23 UTC
Created attachment 331022 [details] [review]
done_notification: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 23 Shivam Tripathi 2016-07-07 19:30:15 UTC
Created attachment 331023 [details] [review]
dropdown: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 24 Shivam Tripathi 2016-07-07 19:31:39 UTC
I'll switch to dashes from now on. Do I need to resend the patches?
Comment 25 Shivam Tripathi 2016-07-07 19:38:37 UTC
Review of attachment 331016 [details] [review]:

Re-sending, with dash.
Comment 26 Shivam Tripathi 2016-07-07 19:40:12 UTC
Created attachment 331024 [details] [review]
create-collection-icon-job: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 27 Shivam Tripathi 2016-07-07 19:41:37 UTC
Created attachment 331025 [details] [review]
create-collection-job: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 28 Shivam Tripathi 2016-07-07 19:43:07 UTC
Created attachment 331026 [details] [review]
delete-item-job: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 29 Shivam Tripathi 2016-07-07 19:44:34 UTC
Created attachment 331027 [details] [review]
dlna-renderers-dialog: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 30 Shivam Tripathi 2016-07-07 19:45:54 UTC
Created attachment 331028 [details] [review]
dlna-renderers-manager: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 31 Shivam Tripathi 2016-07-07 19:47:08 UTC
Created attachment 331029 [details] [review]
done-notification: Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 32 Debarshi Ray 2016-07-07 21:55:00 UTC
Review of attachment 331025 [details] [review]:

::: src/photos-create-collection-job.h
@@ +34,1 @@
 

Nitpick: an extra newline left behind.
Comment 33 Debarshi Ray 2016-07-07 21:55:59 UTC
Created attachment 331033 [details] [review]
create-collection-job: Use G_DECLARE_FINAL_TYPE

Fixed and pushed to master.
Comment 34 Debarshi Ray 2016-07-08 05:20:25 UTC
Review of attachment 331024 [details] [review]:

::: src/photos-create-collection-icon-job.h
@@ +32,2 @@
 #define PHOTOS_TYPE_CREATE_COLLECTION_ICON_JOB (photos_create_collection_icon_job_get_type ())
+G_DECLARE_FINAL_TYPE (PhotosCreateCollectionIconJob, photos_create_collection_icon_job, PHOTOS, CREATE_COLLECTION_ICON_JOB, GObject)

This line is a bit too long. We do go upto 120 characters per line, but this more than that.

@@ +34,1 @@
 

Nitpick: extra newline left behind.

@@ +36,2 @@
 typedef void (*PhotosCreateCollectionIconJobCallback) (GIcon *, gpointer);
 

Ditto.
Comment 35 Debarshi Ray 2016-07-08 05:23:58 UTC
Created attachment 331053 [details] [review]
create-collection-icon-job: Use G_DECLARE_FINAL_TYPE

Fixed it up and pushed to master.
Comment 36 Debarshi Ray 2016-07-08 05:29:57 UTC
Review of attachment 331023 [details] [review]:

::: src/photos-dropdown.h
@@ +34,1 @@
 

Nitpick: extra newline here.
Comment 37 Debarshi Ray 2016-07-08 05:30:55 UTC
Review of attachment 331026 [details] [review]:

::: src/photos-delete-item-job.h
@@ +34,1 @@
 

Nitpick: extra newline here.
Comment 38 Debarshi Ray 2016-07-09 14:11:09 UTC
Created attachment 331127 [details] [review]
dropdown: Use G_DECLARE_FINAL_TYPE

Fixed and pushed to master.
Comment 39 Debarshi Ray 2016-07-12 07:46:28 UTC
Created attachment 331302 [details] [review]
delete-item-job: Use G_DECLARE_FINAL_TYPE
Comment 40 Debarshi Ray 2016-07-12 07:52:45 UTC
Created attachment 331303 [details] [review]
dlna-renderers-dialog: Use G_DECLARE_FINAL_TYPE
Comment 41 Debarshi Ray 2016-07-12 08:01:17 UTC
Created attachment 331304 [details] [review]
dlna-renderers-manager: Use G_DECLARE_FINAL_TYPE
Comment 42 Debarshi Ray 2016-07-12 08:09:40 UTC
Created attachment 331308 [details] [review]
done-notification: Use G_DECLARE_FINAL_TYPE
Comment 43 Pavel Grunt 2016-07-12 19:53:11 UTC
Review of attachment 331308 [details] [review]:

::: src/photos-done-notification.h
@@ -42,3 @@
-GType             photos_done_notification_get_type (void) G_GNUC_CONST;
-
-void              photos_done_notification_new      (PhotosBaseItem *item);

it should keep _new()

otherwise it fails to compile:
photos-done-notification.c:268:1: error: no previous prototype for ‘photos_done_notification_new’ [-Werror=missing-prototypes]
 photos_done_notification_new (PhotosBaseItem *item)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Comment 44 Debarshi Ray 2016-07-12 21:50:22 UTC
(In reply to Pavel Grunt from comment #43)
> Review of attachment 331308 [details] [review] [review]:
> 
> ::: src/photos-done-notification.h
> @@ -42,3 @@
> -GType             photos_done_notification_get_type (void) G_GNUC_CONST;
> -
> -void              photos_done_notification_new      (PhotosBaseItem *item);
> 
> it should keep _new()

You are absolutely right. I should have noticed it during the review. Thanks for catching it, Pavel!
Comment 45 Debarshi Ray 2016-07-12 21:51:14 UTC
Created attachment 331378 [details] [review]
done-notification: Restore the photos_done_notification_new declaration
Comment 46 Shivam Tripathi 2016-08-28 06:14:25 UTC
Created attachment 334294 [details] [review]
error-box : Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 47 Shivam Tripathi 2016-08-28 06:16:42 UTC
Created attachment 334295 [details] [review]
empty-results-box : Use G_DECLARE_FINAL_TYPE

Use G_DECLARE_FINAL_TYPE, as class is not further subclassed.
Comment 48 Debarshi Ray 2016-08-29 15:43:38 UTC
Review of attachment 334294 [details] [review]:

Thanks, Shivam. Pushed.

Nitpick: we can omit the body of the commit message here because it is quite obvious.
Comment 49 Debarshi Ray 2016-08-29 15:47:42 UTC
Review of attachment 334295 [details] [review]:

Thanks. Looks good. Pushed.
Comment 50 Debarshi Ray 2016-10-05 09:43:58 UTC
Created attachment 336970 [details] [review]
application: Remove the pointer for the object method signal handler
Comment 51 Debarshi Ray 2016-10-05 09:45:20 UTC
Created attachment 336971 [details] [review]
application: Use G_DECLARE_FINAL_TYPE
Comment 52 Debarshi Ray 2016-10-06 09:52:25 UTC
Created attachment 337052 [details] [review]
local-item: Use G_DECLARE_FINAL_TYPE
Comment 53 Debarshi Ray 2016-10-06 09:52:58 UTC
Created attachment 337053 [details] [review]
facebook-item: Use G_DECLARE_FINAL_TYPE
Comment 54 Debarshi Ray 2016-10-06 09:53:26 UTC
Created attachment 337054 [details] [review]
flickr-item: Use G_DECLARE_FINAL_TYPE
Comment 55 Debarshi Ray 2016-10-06 09:53:53 UTC
Created attachment 337055 [details] [review]
google-item: Use G_DECLARE_FINAL_TYPE
Comment 56 Debarshi Ray 2016-10-06 09:54:29 UTC
Created attachment 337056 [details] [review]
media-server-item: Use G_DECLARE_FINAL_TYPE
Comment 57 Debarshi Ray 2016-10-07 06:54:31 UTC
Created attachment 337124 [details] [review]
collection-icon-watcher: Remove the vfunc for the default handler
Comment 58 Debarshi Ray 2016-10-07 06:55:04 UTC
Created attachment 337126 [details] [review]
collection-icon-watcher: Use G_DECLARE_FINAL_TYPE
Comment 59 Debarshi Ray 2016-10-07 06:55:44 UTC
Created attachment 337127 [details] [review]
delete-notification: Use G_DECLARE_FINAL_TYPE
Comment 60 Debarshi Ray 2016-10-12 18:07:27 UTC
Created attachment 337528 [details] [review]
widget-shader: Use G_DECLARE_FINAL_TYPE
Comment 61 Debarshi Ray 2016-10-12 18:08:03 UTC
Created attachment 337529 [details] [review]
dlna-renderer: Use G_DECLARE_FINAL_TYPE
Comment 62 Debarshi Ray 2016-11-18 15:36:33 UTC
Created attachment 340243 [details] [review]
edit-palette: Remove the pointer for the object method signal handler
Comment 63 Debarshi Ray 2016-11-18 15:36:52 UTC
Created attachment 340244 [details] [review]
edit-palette: Use G_DECLARE_FINAL_TYPE
Comment 64 Debarshi Ray 2016-11-18 15:37:15 UTC
Created attachment 340245 [details] [review]
view-model: Use G_DECLARE_FINAL_TYPE
Comment 65 Debarshi Ray 2016-11-18 15:37:43 UTC
Created attachment 340246 [details] [review]
edit-palette-row: Use G_DECLARE_FINAL_TYPE
Comment 66 Debarshi Ray 2016-11-18 15:38:06 UTC
Created attachment 340247 [details] [review]
export-dialog: Use G_DECLARE_FINAL_TYPE
Comment 67 Debarshi Ray 2016-11-18 15:38:26 UTC
Created attachment 340248 [details] [review]
view-container: Use G_DECLARE_FINAL_TYPE
Comment 68 Debarshi Ray 2016-11-18 15:42:35 UTC
Created attachment 340249 [details] [review]
export-notification: Use G_DECLARE_FINAL_TYPE
Comment 69 Debarshi Ray 2016-11-22 11:17:15 UTC
Created attachment 340509 [details] [review]
update-mtime-job: Use G_DECLARE_FINAL_TYPE
Comment 70 Debarshi Ray 2016-11-22 11:17:45 UTC
Created attachment 340510 [details] [review]
image-view: Remove the pointers for the object method signal handlers
Comment 71 Debarshi Ray 2016-11-27 01:23:20 UTC
Created attachment 340825 [details] [review]
fetch-collection-state-job: Use G_DECLARE_FINAL_TYPE
Comment 72 Debarshi Ray 2016-11-27 01:24:03 UTC
Created attachment 340826 [details] [review]
fetch-collections-job: Use G_DECLARE_FINAL_TYPE
Comment 73 Debarshi Ray 2016-11-27 01:24:44 UTC
Created attachment 340827 [details] [review]
fetch-ids-job: Use G_DECLARE_FINAL_TYPE
Comment 74 Debarshi Ray 2016-11-27 01:25:29 UTC
Created attachment 340828 [details] [review]
fetch-metas-job: Use G_DECLARE_FINAL_TYPE
Comment 75 Debarshi Ray 2016-11-27 01:26:05 UTC
Created attachment 340829 [details] [review]
image-view: Use G_DECLARE_FINAL_TYPE
Comment 76 Debarshi Ray 2016-11-27 15:22:55 UTC
Created attachment 340843 [details] [review]
notification-manager: Use G_DECLARE_FINAL_TYPE
Comment 77 Debarshi Ray 2016-11-29 10:44:34 UTC
Created attachment 340967 [details] [review]
header-bar: Use G_DECLARE_FINAL_TYPE
Comment 78 Debarshi Ray 2017-01-04 20:37:18 UTC
Created attachment 342900 [details] [review]
preview-nav-buttons: Use G_DECLARE_FINAL_TYPE
Comment 79 Debarshi Ray 2017-01-04 20:37:53 UTC
Created attachment 342901 [details] [review]
tool-crop: Use G_DECLARE_FINAL_TYPE
Comment 80 Debarshi Ray 2017-01-04 20:38:18 UTC
Created attachment 342902 [details] [review]
tool-colors: Use G_DECLARE_FINAL_TYPE
Comment 81 Debarshi Ray 2017-01-04 20:38:35 UTC
Created attachment 342903 [details] [review]
tool-enhance: Use G_DECLARE_FINAL_TYPE
Comment 82 Debarshi Ray 2017-01-04 20:39:16 UTC
Created attachment 342904 [details] [review]
tool-filters: Use G_DECLARE_FINAL_TYPE
Comment 83 Debarshi Ray 2017-02-09 08:39:24 UTC
Created attachment 345292 [details] [review]
indexing-notification: Use G_DECLARE_FINAL_TYPE
Comment 84 Debarshi Ray 2017-02-09 08:39:52 UTC
Created attachment 345293 [details] [review]
organize-collection-dialog: Use G_DECLARE_FINAL_TYPE
Comment 85 Debarshi Ray 2017-02-16 08:34:34 UTC
Created attachment 345924 [details] [review]
tracker-overview-controller: Use G_DECLARE_FINAL_TYPE
Comment 86 Debarshi Ray 2017-02-16 08:34:56 UTC
Created attachment 345925 [details] [review]
tracker-queue: Use G_DECLARE_FINAL_TYPE
Comment 87 Debarshi Ray 2017-02-16 08:35:21 UTC
Created attachment 345926 [details] [review]
tracker-search-controller: Use G_DECLARE_FINAL_TYPE
Comment 88 Debarshi Ray 2017-02-16 08:35:54 UTC
Created attachment 345927 [details] [review]
item-manager: Remove the pointers for the object method signal handlers
Comment 89 Debarshi Ray 2017-02-16 08:36:15 UTC
Created attachment 345928 [details] [review]
item-manager: Use G_DECLARE_FINAL_TYPE
Comment 90 Debarshi Ray 2017-02-28 10:03:06 UTC
Created attachment 346895 [details] [review]
pipeline: Use G_DECLARE_FINAL_TYPE
Comment 91 Debarshi Ray 2017-02-28 10:03:32 UTC
Created attachment 346896 [details] [review]
main-toolbar: Use G_DECLARE_FINAL_TYPE
Comment 92 Debarshi Ray 2017-02-28 10:03:56 UTC
Created attachment 346897 [details] [review]
main-window: Use G_DECLARE_FINAL_TYPE
Comment 93 Debarshi Ray 2017-03-02 07:58:14 UTC
Created attachment 347031 [details] [review]
offset-collections-controller: Use G_DECLARE_FINAL_TYPE
Comment 94 Debarshi Ray 2017-03-02 07:58:34 UTC
Created attachment 347032 [details] [review]
offset-favorites-controller: Use G_DECLARE_FINAL_TYPE
Comment 95 Debarshi Ray 2017-03-15 09:00:57 UTC
Created attachment 347991 [details] [review]
offset-overview-controller: Use G_DECLARE_FINAL_TYPE
Comment 96 Debarshi Ray 2017-03-15 09:01:23 UTC
Created attachment 347992 [details] [review]
offset-search-controller: Use G_DECLARE_FINAL_TYPE
Comment 97 Debarshi Ray 2017-03-16 06:59:29 UTC
Created attachment 348064 [details] [review]
operation-insta-curve: Use G_DECLARE_FINAL_TYPE
Comment 98 Debarshi Ray 2017-03-16 06:59:50 UTC
Created attachment 348065 [details] [review]
operation-insta-filter: Use G_DECLARE_FINAL_TYPE
Comment 99 Debarshi Ray 2017-03-16 07:00:20 UTC
Created attachment 348066 [details] [review]
operation-insta-hefe-curve: Use G_DECLARE_FINAL_TYPE
Comment 100 Debarshi Ray 2017-03-21 08:53:50 UTC
Created attachment 348379 [details] [review]
gegl: Add autocleanups for GeglOperation and its relevant sub-classes
Comment 101 Debarshi Ray 2017-03-21 08:54:11 UTC
Created attachment 348380 [details] [review]
operation-insta-curve: Use G_DECLARE_FINAL_TYPE
Comment 102 Debarshi Ray 2017-03-21 08:54:32 UTC
Created attachment 348381 [details] [review]
operation-insta-filter: Use G_DECLARE_FINAL_TYPE
Comment 103 Debarshi Ray 2017-03-21 08:55:01 UTC
Created attachment 348382 [details] [review]
operation-insta-hefe-curve: Use G_DECLARE_FINAL_TYPE
Comment 104 Debarshi Ray 2017-03-21 08:55:24 UTC
Created attachment 348383 [details] [review]
operation-insta-hefe-vignette: Use G_DECLARE_FINAL_TYPE
Comment 105 Debarshi Ray 2017-03-21 08:55:46 UTC
Created attachment 348384 [details] [review]
operation-insta-hefe: Use G_DECLARE_FINAL_TYPE
Comment 106 Debarshi Ray 2017-03-21 08:56:14 UTC
Created attachment 348385 [details] [review]
operation-jpg-guess-sizes: Use G_DECLARE_FINAL_TYPE
Comment 107 Debarshi Ray 2017-03-21 08:56:35 UTC
Created attachment 348386 [details] [review]
operation-png-guess-sizes: Use G_DECLARE_FINAL_TYPE
Comment 108 Debarshi Ray 2017-03-21 08:56:52 UTC
Created attachment 348387 [details] [review]
operation-saturation: Use G_DECLARE_FINAL_TYPE
Comment 109 Rashi Sah 2017-03-22 20:43:41 UTC
Created attachment 348531 [details] [review]
photos-search-type: Use-G_DECLARE_FINAL_TYPE
Comment 110 Debarshi Ray 2017-03-23 07:32:24 UTC
Review of attachment 348531 [details] [review]:

Thanks for the patch, Rashi. Looks quite good apart from some small problems.

The commit message needs to be tweaked a bit. We don't use the "photos-" prefix in the summary because it is implied. Did you, by chance, mis-spell your name? I am asking because it automatically gets added to app-menu -> help -> about -> credits and is visible in the UI.

::: src/photos-search-type.h
@@ -48,3 @@
-typedef struct _PhotosSearchTypeClass PhotosSearchTypeClass;
-
-GType                photos_search_type_get_type           (void) G_GNUC_CONST;

We also need to remove the definition of 'struct _PhotosSearchTypeClass' from src/photos-search-type.c. See the other patches for examples. Or did you find a similar mistake in one of them?
Comment 111 Rashi Sah 2017-03-24 19:28:40 UTC
Created attachment 348668 [details] [review]
search-type: Use-G_DECLARE_FINAL_TYPE
Comment 112 Rashi Sah 2017-03-24 19:31:07 UTC
No, I did not misspell my name. Isn't it showing the name as 'Rashi'?
Comment 113 Rashi Sah 2017-03-24 20:44:57 UTC
Created attachment 348673 [details] [review]
search-type: Use-G_DECLARE_FINAL_TYPE
Comment 114 Debarshi Ray 2017-03-24 23:54:02 UTC
(In reply to Rashi from comment #112)
> No, I did not misspell my name. Isn't it showing the name as 'Rashi'?

Come on. You don't know how it is showing in the patch that you wrote?! It's showing up as 'RashiSah'. If that's how you spell it, then it's fine. I just wanted to be sure that we have the correct spelling.
Comment 115 Rashi Sah 2017-03-25 20:06:10 UTC
Yeah, I am sorry!
I write my name as Rashi Sah. This has been misspelled, I need to change it.
Comment 116 Debarshi Ray 2017-05-01 20:13:48 UTC
Review of attachment 348379 [details] [review]:

These are no longer needed and have been removed. See bug 782012
Comment 117 Debarshi Ray 2017-05-09 18:04:16 UTC
Review of attachment 348668 [details] [review]:

I was hoping that you'd at least fix the spelling of your name. Never mind the fact that this patch doesn't build. :(

::: src/photos-search-type.h
@@ +32,2 @@
 #define PHOTOS_TYPE_SEARCH_TYPE (photos_search_type_get_type ())
+G_DECLARE_FINAL_TYPE (PhotosSearchtype, photos_search_type, PHOTOS, SEARCH_TYPE, GObject);

Typo: *PhotosSearchType*

@@ -43,3 @@
-#define PHOTOS_SEARCH_TYPE_STOCK_COLLECTIONS "collections"
-#define PHOTOS_SEARCH_TYPE_STOCK_FAVORITES "favorites"
-#define PHOTOS_SEARCH_TYPE_STOCK_PHOTOS "photos"

These 4 preprocessor macros are needed. They are not part of the GObject boilerplate. Removing them will break the build.
Comment 118 Debarshi Ray 2017-05-09 18:06:21 UTC
Created attachment 351475 [details] [review]
search-type: Use G_DECLARE_FINAL_TYPE
Comment 119 Debarshi Ray 2017-06-15 21:55:04 UTC
Created attachment 353864 [details] [review]
organize-collection-model: Use G_DECLARE_FINAL_TYPE
Comment 120 Debarshi Ray 2017-07-18 10:03:23 UTC
Created attachment 355811 [details] [review]
organize-collection-view: Use G_DECLARE_FINAL_TYPE
Comment 121 Debarshi Ray 2017-07-18 10:03:40 UTC
Created attachment 355812 [details] [review]
print-notification: Use G_DECLARE_FINAL_TYPE
Comment 122 Umang Jain 2017-09-04 20:34:05 UTC
Created attachment 359103 [details] [review]
tracker-favorites-controller: Use G_DECLARE_FINAL_TYPE
Comment 123 Umang Jain 2017-09-04 20:34:46 UTC
Created attachment 359104 [details] [review]
tracker-collections-controller: Use G_DECLARE_FINAL_TYPE
Comment 124 Umang Jain 2017-09-04 20:35:19 UTC
Created attachment 359105 [details] [review]
tool-filter-button: Use G_DECLARE_FINAL_TYPE
Comment 125 Umang Jain 2017-09-04 20:36:00 UTC
Created attachment 359106 [details] [review]
spinner-box: Use G_DECLARE_FINAL_TYPE
Comment 126 Umang Jain 2017-09-04 20:45:52 UTC
Created attachment 359107 [details] [review]
source-manager: Use G_DECLARE_FINAL_TYPE
Comment 127 Umang Jain 2017-09-04 22:27:04 UTC
Created attachment 359116 [details] [review]
source: Use G_DECLARE_FINAL_TYPE
Comment 128 Umang Jain 2017-09-04 22:27:33 UTC
Created attachment 359117 [details] [review]
single-item-job: Use G_DECLARE_FINAL_TYPE
Comment 129 Umang Jain 2017-09-04 22:28:02 UTC
Created attachment 359118 [details] [review]
share-point-manager: Use G_DECLARE_FINAL_TYPE
Comment 130 Umang Jain 2017-09-04 22:28:30 UTC
Created attachment 359119 [details] [review]
share-dialog: Use G_DECLARE_FINAL_TYPE
Comment 131 Umang Jain 2017-09-04 22:29:04 UTC
Created attachment 359120 [details] [review]
set-collection-job: Use G_DECLARE_FINAL_TYPE
Comment 132 Umang Jain 2017-09-04 22:30:32 UTC
Created attachment 359121 [details] [review]
print-setup: Use G_DECLARE_FINAL_TYPE

Move some code around (from .h to .c) , please lookout!
Comment 133 Umang Jain 2017-09-04 22:53:39 UTC
Created attachment 359124 [details] [review]
preview-view: Use G_DECLARE_FINAL_TYPE
Comment 134 Umang Jain 2017-09-04 22:54:06 UTC
Created attachment 359125 [details] [review]
print-operation: Use G_DECLARE_FINAL_TYPE
Comment 135 Umang Jain 2017-09-04 23:00:28 UTC
Created attachment 359126 [details] [review]
print-preview: Use G_DECLARE_FINAL_TYPE

Move some code around (from .h to .c) , please lookout!
Comment 136 Umang Jain 2017-09-04 23:26:15 UTC
Created attachment 359128 [details] [review]
print-preview: Use G_DECLARE_FINAL_TYPE
Comment 137 Umang Jain 2017-09-04 23:26:39 UTC
Created attachment 359129 [details] [review]
remote-display-manager: Use G_DECLARE_FINAL_TYPE
Comment 138 Umang Jain 2017-09-04 23:27:14 UTC
Created attachment 359130 [details] [review]
search-match: Use G_DECLARE_FINAL_TYPE
Comment 139 Umang Jain 2017-09-04 23:27:55 UTC
Created attachment 359131 [details] [review]
search-match-manager: Use G_DECLARE_FINAL_TYPE
Comment 140 Umang Jain 2017-09-04 23:28:31 UTC
Created attachment 359132 [details] [review]
search-provider: Use G_DECLARE_FINAL_TYPE
Comment 141 Umang Jain 2017-09-04 23:29:02 UTC
Created attachment 359133 [details] [review]
search-type-manager: Use G_DECLARE_FINAL_TYPE
Comment 142 Umang Jain 2017-09-04 23:29:31 UTC
Created attachment 359134 [details] [review]
selection-toolbar: Use G_DECLARE_FINAL_TYPE
Comment 143 Umang Jain 2017-09-04 23:55:46 UTC
Created attachment 359139 [details] [review]
overview-searchbar: Use G_DECLARE_FINAL_TYPE
Comment 144 Debarshi Ray 2017-09-05 07:00:36 UTC
Review of attachment 359103 [details] [review]:

Thanks for the patches! Looks good to me.
Comment 145 Debarshi Ray 2017-09-05 07:01:36 UTC
Review of attachment 359104 [details] [review]:

++

By the way, do you have a GNOME Git account?
Comment 146 Debarshi Ray 2017-09-05 07:06:54 UTC
Review of attachment 359105 [details] [review]:

::: src/photos-tool-filter-button.h
@@ +31,3 @@
+                      PHOTOS,
+                      TOOL_FILTER_BUTTON,
+                      GtkBin);

Nitpick: Could be on the same line.
Comment 147 Debarshi Ray 2017-09-05 07:08:04 UTC
Created attachment 359162 [details] [review]
tool-filter-button: Use G_DECLARE_FINAL_TYPE

Fixed and pushed.
Comment 148 Debarshi Ray 2017-09-05 08:01:14 UTC
Review of attachment 359106 [details] [review]:

::: src/photos-spinner-box.h
@@ +35,3 @@
+                      PHOTOS,
+                      SPINNER_BOX,
+                      GtkRevealer);

Nitpick: could be on the same line.
Comment 149 Debarshi Ray 2017-09-05 08:02:14 UTC
Created attachment 359168 [details] [review]
spinner-box: Use G_DECLARE_FINAL_TYPE
Comment 150 Umang Jain 2017-09-05 19:36:30 UTC
Created attachment 359225 [details] [review]
selection-controller: Remove the vfunc for the default handler
Comment 151 Umang Jain 2017-09-05 19:36:57 UTC
Created attachment 359226 [details] [review]
selection-controller: Use G_DECLARE_FINAL_TYPE
Comment 152 Umang Jain 2017-09-05 19:37:29 UTC
Created attachment 359227 [details] [review]
search-controller: Remove the vfunc for the default handler
Comment 153 Umang Jain 2017-09-05 19:37:58 UTC
Created attachment 359228 [details] [review]
search-controller: Use G_DECLARE_FINAL_TYPE
Comment 154 Umang Jain 2017-09-05 19:38:36 UTC
Created attachment 359229 [details] [review]
properties-dialog: Remove the vfunc for the default handler
Comment 155 Umang Jain 2017-09-05 19:39:09 UTC
Created attachment 359230 [details] [review]
properties-dialog: Use G_DECLARE_FINAL_TYPE
Comment 156 Umang Jain 2017-09-05 19:39:30 UTC
Created attachment 359231 [details] [review]
tracker-change-monitor: Remove the vfunc for the default handler
Comment 157 Umang Jain 2017-09-05 19:40:01 UTC
Created attachment 359232 [details] [review]
tracker-change-monitor: Use G_DECLARE_FINAL_TYPE
Comment 158 Debarshi Ray 2017-09-05 19:55:04 UTC
Review of attachment 359107 [details] [review]:

Thanks, Umang. Looks good to me.
Comment 159 Debarshi Ray 2017-09-05 19:59:53 UTC
Review of attachment 359116 [details] [review]:

Perfect, looks good.
Comment 160 Debarshi Ray 2017-09-06 06:54:09 UTC
Review of attachment 359117 [details] [review]:

::: src/photos-single-item-job.h
@@ -51,1 @@
 

Nitpick: extra newline left behind.
Comment 161 Debarshi Ray 2017-09-06 06:57:34 UTC
Review of attachment 359118 [details] [review]:

++
Comment 162 Debarshi Ray 2017-09-06 06:59:37 UTC
Created attachment 359251 [details] [review]
single-item-job: Use G_DECLARE_FINAL_TYPE

Removed the extra newline and pushed.
Comment 163 Debarshi Ray 2017-09-06 07:06:34 UTC
Review of attachment 359119 [details] [review]:

++
Comment 164 Debarshi Ray 2017-09-06 07:08:12 UTC
Review of attachment 359120 [details] [review]:

++
Comment 165 Umang Jain 2017-09-06 16:01:31 UTC
Review of attachment 359107 [details] [review]:

Committed
Comment 166 Umang Jain 2017-09-06 16:02:48 UTC
Review of attachment 359116 [details] [review]:

Committed
Comment 167 Umang Jain 2017-09-06 16:04:03 UTC
Review of attachment 359118 [details] [review]:

committed
Comment 168 Umang Jain 2017-09-06 16:04:34 UTC
Review of attachment 359119 [details] [review]:

committed
Comment 169 Umang Jain 2017-09-06 16:05:06 UTC
Review of attachment 359120 [details] [review]:

committed
Comment 170 Debarshi Ray 2017-09-06 21:59:32 UTC
Review of attachment 359121 [details] [review]:

This isn't quite right. First, we need to turn PrintSetup into a final class by dropping the priv pointer. eg., commit 56802826f5f21c46. Then we need to use G_DECLARE_FINAL_TYPE.
Comment 171 Debarshi Ray 2017-09-06 22:03:59 UTC
Review of attachment 359124 [details] [review]:

Looks good to me.
Comment 172 Debarshi Ray 2017-09-06 22:08:03 UTC
Review of attachment 359125 [details] [review]:

++
Comment 173 Debarshi Ray 2017-09-07 10:10:25 UTC
Review of attachment 359126 [details] [review]:

Oops! The PrintPreview class is messy. We inherited it from Eye of GNOME, and the coding style doesn't match the rest of the codebase.

Similar to attachment 359121 [details] [review], first, we need to turn PrintPreview into a final class by dropping the priv pointer. eg., commit 56802826f5f21c46. Then we need to use G_DECLARE_FINAL_TYPE.

I took the liberty to fix up some of the style issues. If you do want to fix any of the remaining style issues, please keep them in a separate patch. :)
Comment 174 Debarshi Ray 2017-09-07 10:12:41 UTC
Review of attachment 359129 [details] [review]:

++
Comment 175 Debarshi Ray 2017-09-07 21:08:00 UTC
Review of attachment 359130 [details] [review]:

++
Comment 176 Debarshi Ray 2017-09-07 21:29:25 UTC
Review of attachment 359131 [details] [review]:

::: src/photos-search-match-manager.h
@@ +33,2 @@
 #define PHOTOS_TYPE_SEARCH_MATCH_MANAGER (photos_search_match_manager_get_type ())
+G_DECLARE_FINAL_TYPE (PhotosSearchMatchManager, photos_search_match_manager, PHOTOS, SEARCH_MATCH_MANAGER, PhotosBaseManager);

This seems a little too close to the edge for comfort. If 120 is the hard limit, it is better to keep one or two characters as margin. Helpful when looking at diffs with the +/-/etc. in the gutter.

Anyway, that's a very minor personal niggle of mine. :)
Comment 177 Debarshi Ray 2017-09-07 21:30:40 UTC
Created attachment 359377 [details] [review]
search-match-manager: Use G_DECLARE_FINAL_TYPE

Fixed and pushed.
Comment 178 Umang Jain 2017-09-08 11:30:32 UTC
Review of attachment 359124 [details] [review]:

committed
Comment 179 Umang Jain 2017-09-08 11:31:10 UTC
Review of attachment 359125 [details] [review]:

committed
Comment 180 Umang Jain 2017-09-08 11:31:50 UTC
Review of attachment 359129 [details] [review]:

committed
Comment 181 Umang Jain 2017-09-08 11:32:03 UTC
Review of attachment 359130 [details] [review]:

committed
Comment 182 Debarshi Ray 2017-09-08 18:10:48 UTC
Review of attachment 359132 [details] [review]:

Looks good to me, thanks!
Comment 183 Debarshi Ray 2017-09-08 18:15:08 UTC
Review of attachment 359133 [details] [review]:

::: src/photos-search-type-manager.h
@@ +32,2 @@
 #define PHOTOS_TYPE_SEARCH_TYPE_MANAGER (photos_search_type_manager_get_type ())
+G_DECLARE_FINAL_TYPE (PhotosSearchTypeManager, photos_search_type_manager, PHOTOS, SEARCH_TYPE_MANAGER, PhotosBaseManager);

This seems a little too close to the edge for comfort. If 120 is the hard limit, it is better to keep one or two characters as margin. Helpful when looking at diffs with the +/-/etc. in the gutter.

Anyway, that's a very minor personal niggle of mine. :)
Comment 184 Debarshi Ray 2017-09-08 18:15:53 UTC
Created attachment 359412 [details] [review]
search-type-manager: Use G_DECLARE_FINAL_TYPE
Comment 185 Debarshi Ray 2017-09-11 15:07:45 UTC
Review of attachment 359134 [details] [review]:

Looks good. Thank you.
Comment 186 Debarshi Ray 2017-09-12 07:46:02 UTC
Comment on attachment 359134 [details] [review]
selection-toolbar: Use G_DECLARE_FINAL_TYPE

I pushed this myself by mistake.
Comment 187 Debarshi Ray 2017-09-12 07:56:07 UTC
Review of attachment 359139 [details] [review]:

++
Comment 188 Debarshi Ray 2017-09-12 08:02:22 UTC
Review of attachment 359225 [details] [review]:

Looks good to me.
Comment 189 Debarshi Ray 2017-09-13 09:25:18 UTC
Review of attachment 359226 [details] [review]:

::: src/photos-selection-controller.h
@@ +32,2 @@
 #define PHOTOS_TYPE_SELECTION_CONTROLLER (photos_selection_controller_get_type ())
+G_DECLARE_FINAL_TYPE (PhotosSelectionController, photos_selection_controller, PHOTOS, SELECTION_CONTROLLER, GObject)

Nitpick: missing semi-colon.
Comment 190 Debarshi Ray 2017-09-13 09:26:15 UTC
Created attachment 359697 [details] [review]
selection-controller: Use G_DECLARE_FINAL_TYPE

Fixed and pushed.
Comment 191 Debarshi Ray 2017-09-18 13:06:19 UTC
Review of attachment 359227 [details] [review]:

Perfect.
Comment 192 Debarshi Ray 2017-09-18 13:06:29 UTC
Review of attachment 359228 [details] [review]:

++
Comment 193 Debarshi Ray 2017-09-26 10:09:58 UTC
Comment on attachment 359228 [details] [review]
search-controller: Use G_DECLARE_FINAL_TYPE

I pushed this to master.
Comment 194 Debarshi Ray 2017-09-26 10:10:36 UTC
Created attachment 360417 [details] [review]
overview-searchbar: Use G_DECLARE_FINAL_TYPE
Comment 195 Debarshi Ray 2017-09-26 10:21:31 UTC
Review of attachment 359229 [details] [review]:

++
Comment 196 Debarshi Ray 2017-09-26 10:21:58 UTC
Review of attachment 359230 [details] [review]:

Looks good. Thanks.
Comment 197 Debarshi Ray 2017-09-26 13:59:44 UTC
Review of attachment 359231 [details] [review]:

++
Comment 198 Debarshi Ray 2017-09-26 14:00:07 UTC
Review of attachment 359232 [details] [review]:

++
Comment 199 Umang Jain 2017-09-26 16:25:10 UTC
Created attachment 360472 [details] [review]
print-preview: Use G_DECLARE_FINAL_TYPE
Comment 200 Umang Jain 2017-09-26 16:25:47 UTC
Created attachment 360473 [details] [review]
print-setup: Use G_DECLARE_FINAL_TYPE
Comment 201 Debarshi Ray 2017-09-26 18:59:26 UTC
Review of attachment 360472 [details] [review]:

++
Comment 202 Debarshi Ray 2017-09-26 18:59:53 UTC
Review of attachment 360473 [details] [review]:

++