GNOME Bugzilla – Bug 705551
Switch to G_ADD_PRIVATE() all the things!
Last modified: 2013-08-06 16:45:25 UTC
Since after commit f0b9f17bd we now depend on new enough GTK+/GLib versions to be able to use GtkWidget templates, let's switch to G_ADD_PRIVATE()/G_DEFINE_TYPE_WITH_PRIVATE() and friends for all the photos-* objects. Note that I've ported only the photos-* files as I suppose we want to keep the eog-* and gegl-* ones in sync with their original sources.
Created attachment 250948 [details] [review] Switch to G_ADD_PRIVATE() all the things! Since after commit f0b9f17bd we now depend on new enough GTK+/GLib versions to be able to use GtkWidget templates, let's switch to G_ADD_PRIVATE()/G_DEFINE_TYPE_WITH_PRIVATE() and friends for all the photos-* objects.
Review of attachment 250948 [details] [review]: Wonderful! You read my mind. Many thanks for this clean-up. ::: src/photos-offset-collections-controller.c @@ +39,1 @@ +G_DEFINE_TYPE_WITH_PRIVATE (PhotosOffsetCollectionsController, photos_offset_collections_controller, PHOTOS_TYPE_OFFSET_CONTROLLER); I prefer to break this up so that we don't exceed 120 characters per line. ::: src/photos-offset-favorites-controller.c @@ +39,1 @@ +G_DEFINE_TYPE_WITH_PRIVATE (PhotosOffsetFavoritesController, photos_offset_favorites_controller, PHOTOS_TYPE_OFFSET_CONTROLLER); Ditto. ::: src/photos-tracker-collections-controller.c @@ +36,1 @@ +G_DEFINE_TYPE_WITH_PRIVATE (PhotosTrackerCollectionsController, photos_tracker_collections_controller, PHOTOS_TYPE_TRACKER_CONTROLLER); Ditto. ::: src/photos-tracker-favorites-controller.c @@ +36,1 @@ +G_DEFINE_TYPE_WITH_PRIVATE (PhotosTrackerFavoritesController, photos_tracker_favorites_controller, PHOTOS_TYPE_TRACKER_CONTROLLER); Ditto.
Committed after the making the above adjustments.